You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating an ignore rule that includes an artifact with a specified path but no version, the provider successfully creates it, but returns the error Error: Provider produced inconsistent result after apply when retrieving its state.
If the version is specified, the apply passes with no error. However, we would like for the ignore rule to affect all version of the artifact
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ xray_ignore_rule.ignore-rules["10c2776f7ed4c591086bd8669fc94b9f91847fed2a64026453c0da2b8e1279dd"],
│ provider "provider[\"registry.terraform.io/jfrog/xray\"]" produced an
│ unexpected new value: .artifact: planned set element
│ cty.ObjectVal(map[string]cty.Value{"name":cty.StringVal("test"),
│ "path":cty.StringVal("test/"), "version":cty.NullVal(cty.String)}) does not
│ correlate with any element in actual.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
The resource is correctly created but becomes tainted in the terraform state.
If the version is specified, then the apply successfully complete.
Expected behavior
The apply should successfully complete without requiring to specify the version.
Then the provider seems to not be able to retrieve the path, and assigns it null instead:
2025-02-19T14:29:11.0990761Z 2025-02-19T14:29:11.098Z [DEBUG] provider.terraform-provider-xray_v3.0.3: Value switched to prior value due to semantic equality logic: tf_attribute_path="artifact[Value({\"name\":\"test\",\"path\":<null>,\"version\":<null>})].name" tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-framework@v1.13.0/internal/fwschemadata/value_semantic_equality.go:91 @module=sdk.framework tf_provider_addr=registry.terraform.io/jfrog/xray tf_req_id=6632a40c-7a39-77cb-ba80-9dbf6334e7e5 tf_resource_type=xray_ignore_rule timestamp=2025-02-19T14:29:11.097Z
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating an ignore rule that includes an artifact with a specified path but no version, the provider successfully creates it, but returns the error
Error: Provider produced inconsistent result after apply
when retrieving its state.If the version is specified, the apply passes with no error. However, we would like for the ignore rule to affect all version of the artifact
Requirements for and issue
main.tf
:Error:
The resource is correctly created but becomes tainted in the terraform state.
If the version is specified, then the apply successfully complete.
Expected behavior
The apply should successfully complete without requiring to specify the version.
Additional context
From DEBUG logs:
POST Request:
Following GET Request:
Then the provider seems to not be able to retrieve the path, and assigns it
null
instead:The text was updated successfully, but these errors were encountered: