-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Team
- I've assigned a team label to this issue
Severity
Low
Version
For ever?
Latest Version
I could reproduce the problem in the latest version
What happened?
Certain Step inputs are required before a step in a process can be saved.
When creating a Custom Step Template that extends a built-in step, these same "required" rules are not always enforced, compared to if you were using the given Built-In step directly in a deployment process.
The validation to ensure the fields are fill out doesn't run when saving the step template, but do run when adding the step. However they can't be edited then.
https://octopusdeploy.slack.com/archives/C01J6U3MHJ4/p1621831538028800
Reproduction
- Create a new Custom Step Template, using "Deploy to IIS" as the base step
- Add a name for the Step Template
- Change to the "Step" tab and choose any random package under the "package" field, it doesn't matter which
- Choose "Virtual Directory" as the IIS Deployment Type, but do not fill in "Parent web site" or "Virtual path"
- Save the Step template
Expected (maybe*): Saving the step template should fail unless all required fields have a value, either something hardcoded, or a value plumbed through from a Step Template Parameter
Actual: Step Template can be saved and used in a deployment process. When used in a process, the validation runs and says that the required fields are missing, however the UI only exposes the Step Template parameters to the user, so they have no way of providing the required values.
Error and Stacktrace
N/A
More Information
No response
Workaround
No response