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

Error: fusionauth_registration error when user dismisses license prompt #292

Open
flelli opened this issue Sep 25, 2024 · 3 comments
Open

Comments

@flelli
Copy link

flelli commented Sep 25, 2024

If a user dismisses the license prompt shown on the bottom left on the UI the fusionauth_registration resource raises an error when reading and unmarshalling the resource status.
Ignoring change to the data attribute does not prevent the error.

Terraform error looks like:

Error: registration.data: data.preferences: '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[announcements:map[licenseCTA:dismissed]]'

  with module.FUSIONAUTH-CONFIGURATION.fusionauth_registration.user_application_registration,
  on users.tf line 92, in resource "fusionauth_registration" "user_application_registration":
  92: resource "fusionauth_registration" "user_application_registration" {
@TomKimber
Copy link
Collaborator

This issue should be fixed as part of the V0.2.0 release (https://github.com/FusionAuth/terraform-provider-fusionauth/releases/tag/v0.2.0).

@flelli
Copy link
Author

flelli commented Feb 26, 2025

Thanks @TomKimber , I tested it and it looks like the bug is still there. Here's the output after dismissing the license popup:

$ terraform version
Terraform v1.9.8
on linux_amd64
+ provider registry.terraform.io/fusionauth/fusionauth v0.2.0
...
$ terraform plan
Acquiring state lock. This may take a few moments...
...
Error: registration.data: data.preferences: '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[announcements:map[licenseCTA:dismissed]]'
│ 
│   with module.FUSIONAUTH-CONFIGURATION.fusionauth_registration.user_application_registration,
│   on users.tf line 92, in resource "fusionauth_registration" "user_application_registration":
│   92: resource "fusionauth_registration" "user_application_registration" {

Can you reopen this issue?

@TomKimber TomKimber reopened this Feb 26, 2025
@TomKimber
Copy link
Collaborator

@flelli Issue reopened. I wasn't able to replicate with the 0.2.0 but was with the prior version. I'll take another look.

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

2 participants