Issues icon indicating copy to clipboard operation
Issues copied to clipboard

partialName and name in the /api/tenants, /api/tenants/all and /api/environments api both do wildcard search

Open johnsimons opened this issue 2 years ago • 5 comments

Team

  • [X] I've assigned a team label to this issue

Severity

No response

Version

2022.2.1851

Latest Version

No response

What happened?

When using the API, I was expecting name to return a specific name, not wildcarding it.

The issue is that both:

  • /api/Spaces-1/tenants?partialName=And
  • /api/Spaces-1/tenants?name=And

do a wildcard search 😢

Reproduction

You can use deploy instance to test this

Error and Stacktrace

No response

More Information

No response

Workaround

No response

johnsimons avatar Mar 28 '22 04:03 johnsimons

This looks intended based on the Swagger description of the name param, and may need to stay that way as it's "left for backward compatibility". image

Could add another param which does an exact name search and use that in the Terraform provider instead?

N-lson avatar Mar 28 '22 04:03 N-lson

@N-lson this is really inconsistent, see for example: image

johnsimons avatar Mar 28 '22 05:03 johnsimons

How would we as a customer best highlight this so that we can get some sort of understanding on when it will be fixed? Should we register a support case or is this enough?

ericlundmark avatar Apr 06 '22 12:04 ericlundmark

Hey @ericlundmark this issue is enough. It's on our backlog but we can't promise a specific estimated time on a fix for this.

N-lson avatar Apr 13 '22 05:04 N-lson

Customer also experiencing this issue - https://octopus.zendesk.com/agent/tickets/87785

brentkinney avatar Apr 25 '22 20:04 brentkinney

Another report of this issue (private): https://octopus.zendesk.com/agent/tickets/127722

KennethBates avatar May 30 '23 00:05 KennethBates