OctopusDeploy / Issues

| Public | Bug reports and known issues for Octopus Deploy and all related tools
https://octopus.com
161 stars 20 forks source link

Action Template Parameters "DefaultValue" is set to an empty string, instead of NULL, when a new parameter is added with no "Default value" #8942

Open donnybell opened 3 months ago

donnybell commented 3 months ago

Severity

No response

Version

2024.2.9313

Latest Version

None

What happened?

Action Template Parameters "DefaultValue" is set to an empty string, instead of NULL, when a new parameter is added with no "Default value". This is not a permitted value, according to Swagger. image

Reproduction

  1. Add a parameter to a step template image

  2. View the JSON via the API and copy the relevant portion as shown: image

  3. Attempt to PUT the JSON via SwaggerUI (fail): image

  4. Attempt the same PUT, but change "DefaultValue": "", to "DefaultValue": null, (success): image

image

Error and Stacktrace

Please correct the following validation errors and try again.

More Information

No response

Workaround

No response

michelle-luana commented 3 months ago

The Octopus engineering team has reviewed this issue.
After careful consideration, we’ve classed this low priority. This means we won’t work on it in the near future. We prioritize issues based on the number of people affected, the impact type, and available workarounds. If you’ve encountered this issue and haven’t informed our support team, please email support@octopus.com. Knowing how many people this issue affects helps us determine its priority.