Skip to content

[BUG] Inconsistent result after apply #260

@FlorianL-Git

Description

@FlorianL-Git

Is there an existing issue for this?

  • I have searched the existing issues

What version of the Terraform provider are you using?

0.4.0-beta1

What version of the Terraform CLI are you using?

1.14.4

What type of issue are you facing

bug report

Describe the bug

We are trying to adjust a SAP managed CIS App (Subaccount XSUAA):

~ resource "sci_application" "subaccount_app" {
     ~ authentication_schema = {
         ~ assertion_attributes       = [
             + {
                 + attribute_name  = "login_name"
                 + attribute_value = "loginName"
               },
               # (5 unchanged elements hidden)
           ]
           # (6 unchanged attributes hidden)
       }
     + description           = "Subaccount OIDC Application for Automated Integration Test - OIDC"
       id                    = "<truncated>"
       name                  = "XSUAA_<truncated>"
       # (1 unchanged attribute hidden)
   }

The changes itself are working, but the apply still results in:

╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sci_application.subaccount_app, provider
│ "provider[\"registry.terraform.io/sap/sap-cloud-identity-services\"]"
│ produced an unexpected new value:.authentication_schema.assertion_attributes[5].inherited: was null, but now
│ cty.False.
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to sci_application.subaccount_app, provider
│ "provider[\"registry.terraform.io/sap/sap-cloud-identity-services\"]"
│ produced an unexpected new value:.authentication_schema.saml2_config.digest_algorithm: was
│ cty.StringVal(""), but now cty.StringVal("sha256").
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Expected Behavior

Apply without errors

Steps To Reproduce

  1. Create a Subaccount
  2. Create Trustconfiguration
  3. Retrieve SAP Managed CIS App ID
  4. Import CIS App ID
  5. Adjust any attribute for the inconsistent for .authentication_schema.saml2_config.digest_algorithm
  6. Adjust assertion attributes for incosistent result in .authentication_schema.assertion_attributes[5].inherited

Add screenshots to help explain your problem

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions