Skip to content

xray_watch "description" field incorrectly set as null when value is emtpy string #293

@EitanJoseph

Description

@EitanJoseph

Describe the bug
Terraform: 1.9.8
Artifactory: 7.59.9
Xray: 3.74.8

Providers:
jfrog/xray version: 3.0.3
jfrog/artifactory version: 12.3.2

When configuring an xray_watch with a description set to an empty string, for example

resource "xray_watch "WatchName" {
   name = "name"
   active = true
   description = ""
}

it appears that the actual value being set to the description is null because after applying this configuration then immediately checking terraform plan the output still shows that changes will be made ~ though it does not show any fields that will be changed.

Additionally, if you add an actual non-empty string to the description then configure the description as the empty string and check terraform plan you will see that it plans to set the description to null.

Requirements for and issue

  • A fully functioning terraform snippet that can be copy&pasted (no outside files or ENV vars unless that's part of the issue)
  • Your version of Artifactory and Xray (you can curl Artifactory version at $host/artifactory/api/system/version and Xray version at
    $host/xray/api/v1/system/version
  • Your version of terraform

Expected behavior
The expected behavior is that the description, weather null or empty string, should not display changes in terraform plan for a configuration with a null or empty string description. Otherwise this step incorrectly reports that our configuration is misaligned with the ground truth.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions