Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Validation of some resource names is different depending on the OS hosting Octopus Server

Open benPearce1 opened this issue 9 months ago • 0 comments

Severity

No blocked customers

Version

All versions, probably 3+

Latest Version

I could reproduce the problem in the latest build

What happened?

The validation of the names for some resources ensures that the name doesn't contain any characters that would be invalid for a filename. This currently sources the list of invalid characters from the .Net framework, which is different depending on which operating system the server is running upon. For example, a colon : is valid in Unix based OSs but not valid in Windows.

This includes Environments, Projects, Runbooks, Feeds, Steps, Step Templates, Worker Pools, Spaces.

Reproduction

Attempt to create a step with a name containing a colon. If the server is running on Windows, this will error with the message Names can only contain letters, numbers, periods, commas, dashes, underscores or hashes. On Linux based OSs this will save correctly.

Error and Stacktrace

No response

More Information

No response

Workaround

No response

benPearce1 avatar Jan 07 '25 07:01 benPearce1