Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource okta_user_schema_property having any array_type other than "string" and array_enum values #1074

Closed
monde opened this issue Apr 21, 2022 · 2 comments
Assignees

Comments

@monde
Copy link
Collaborator

monde commented Apr 21, 2022

There is a known issue with the Okta API underpinning the resource okta_user_schema_property. If the resource has a array_type other than "string" and an array_enum of values, then the Okta API will incur 500 errors. For example the array_number.tf:

resource "okta_user_schema_property" "test" {
  index       = "testAcc_replace_with_uuid"
  title       = "terraform acceptance test"
  type        = "array"
  description = "testing"
  master      = "OKTA"
  scope       = "SELF"
  array_type  = "number"
  array_enum  = [0.01, 0.02, 0.03]
  array_one_of {
    title = "1"
    const = 0.01
  }
  array_one_of {
    title = "2"
    const = 0.02
  }
  array_one_of {
    title = "3"
    const = 0.03
  }
}

Will cause this kind of error:

[ERROR] the API returned an error: The enum constraint com.fasterxml.jackson.databind.node.TextNode "0.01" is not valid for the given property type java.lang.Number., x-okta-request-id=XXX
@monde monde self-assigned this May 3, 2022
@monde
Copy link
Collaborator Author

monde commented Jun 10, 2022

This goes back to the SDK
okta/okta-sdk-golang#304

@monde
Copy link
Collaborator Author

monde commented Jun 27, 2022

Fixed in v3.30.0

@monde monde closed this as completed Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant