OctopusDeploy / Issues

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

Environment API endpoint doesn't filter on name correctly #8957

Closed benPearce1 closed 1 month ago

benPearce1 commented 1 month ago

Severity

Blocking some customers, no workaround available

Version

2021.x

Latest Version

I could reproduce the problem in the latest build

What happened?

When querying the API by name the result set will always perform a partial match on the name

Reproduction

  1. Create multiple environments with matching prefixes:
  2. Hit API endpoint e.g http://localhost:8066/api/Spaces-784/environments?name=dev
  3. All returned results will be a partial name match on the name query value:

image

Error and Stacktrace

N/A

More Information

No response

Workaround

Client side filtering would be required, or filter on the ID

benPearce1 commented 1 month ago

Working as designed