prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Escape work pool names when translating from CLI/UI to API URLs

Open chrisguidry opened this issue 1 year ago • 0 comments

We had an instance of a customer with a work pool named ' some-word\' which couldn't be removed via the UI or the API due to the leading space and the trailing \. Work pools are a little different from many of our domain objects, as they are referenced in URLs by their names, and that's the only way to DELETE them at the moment.

When the CLI or UI translate work pool names into API URLs, they should each be using HTTP URL encoding, so that example above would become '%20some-word%5C' when used in URLs.

chrisguidry avatar Jan 30 '24 14:01 chrisguidry