Spaces endpoint doesn't honour the name
query parameter
#7347
Labels
kind/bug
This issue represents a verified problem we are committed to solving
name
query parameter
#7347
Team
Severity
None blocking, has shown up in things like the Terraform provider where engineers have assumed this is a valid query parameter
Version
2021.2
Latest Version
I could reproduce the problem in the latest build
What happened?
The root document exposes the following template for the Spaces endpoint
However the name parameter is not applied. Providing a value for it results in all spaces being returned.
Given the parameter list, the expected behaviour would be for it to be doing an exact name match with that parameter. This filtering not working was a root cause of this issue in the Terraform provider.
Reproduction
Create 2 spaces with unique names.
Using a browser or Postman or tool of choice hit
/api/spaces?name=oneOfYourNames
and the json will contain the data for both spaces.Error and Stacktrace
No response
More Information
No response
Workaround
Use
partialName
and check the result set yourself for the exact match you need.The text was updated successfully, but these errors were encountered: