-
Notifications
You must be signed in to change notification settings - Fork 216
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
[3.25] okta_app_user_schema_property
JSON errors
#1087
Comments
okta_app_user_schema_property
JSON errors
Seems like the okta-sdk-golang upgrade had some type capabilities shift on it. Regressions make me so blue. Thanks for the details @exitcode0 |
Any chance this could get prioritized for next release @monde , thanks :) |
@virgofx the acceptance test isn't kicking off the issue you are having. It uses this TF https://github.com/okta/terraform-provider-okta/blob/master/examples/okta_app_user_schema_property/basic.tf . How does your config look different? Email me directly if you don't to show it in the public. |
So after more investigation, the issue occurs when attempting to import/apply when crossing over between 3.24 to separate version. There must be some sort of JSON/data incompatibility. When I removed the resource, then upgraded to 3.27 and then re-applied, everything works. So I'll close this issue for now as there is a workaround. If anyone experiences this, simply remove the resources via old provider and then re-create via new provider. |
Ack. I was testing with 3.24 actually. Ignore previous comment. Investigating further. |
@virgofx send me a snippet of your config. I was going to do a release today but will be tomorrow. Perhaps this will make it in. |
Here ya go @monde I was a little swamped today so wasn't able to debug. If you're able to check it out before me, great ;P
|
@virgofx granted my ACC test is with an oauth app in #1140 , even so, I'm not getting your serialization error. |
Paired with @virgofx . Looks like the return from the API is not matching the schema in https://github.com/okta/okta-management-openapi-spec which in turn is causing a serialization error in okta-sdk-golang. He'll open a bug on okta-sdk-golang. |
@monde I haven't tested yet but should 3.30 fix this? |
@virgofx yes try out v3.30.0 . I was just in the process of looking through any of the existing open issues that may benefit from this. |
v3.30.0 addresses this, please reopen if this isn't addressed correctly. One thing to note is the terraform runtime statically defines the schema at runtime and so we had make enum and one_of.const be string but under the hood the resource "okta_app_user_schema_property" "flex_sb_nesting" {
# ...
array_type = "integer"
array_enum = ["4", "5"]
array_one_of {
const = "4"
title = "four"
}
array_one_of {
const = "5"
title = "five"
}
#...
} See "important note on" https://registry.terraform.io/providers/okta/okta/latest/docs/resources/app_user_schema_property that talks about enum/one_of |
@monde I've confirmed that 3.30.0 resolves the issue. Thanks so much! |
Starting with version 3.25 the
okta_app_user_schema_property
now errors out for plan/applies/imports. Downgrading back to version 3.24 there are no issues.Terraform Version
Terraform v1.1.7
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
I'm testing a default Google Workspace preconfigured App with
emailAddresses
configured. LinkOutput
Community Note
The text was updated successfully, but these errors were encountered: