API problem with tenant name

Hi,
I have tenants with prefixes, like [Dev]123456 and when I am trying to get it by name using API, like this http://my_octupus_url/api/tenants?name=[Dev]123456 I’m getting 0 items, but if I rename this tenant to be 123456 and execute http://my_octupus_url/api/tenants?name=123456 - it works perfect.
So I suppose there is a bug in API that doesn’t like [ or ].
Maybe other symbols too, didn’t check

Thanks

Hi Denis,

Thanks for getting in touch! I’m sorry to hear you’re hitting this unexpected and strange behavior. I’ve given this a test in my local instance (running latest, 2019.4.4) and I’m unable to reproduce this. A tenant named [Dev]123456 is accessible via the API in this way. It may have been fixed in conjunction with another bug fix that’s been shipped since your version (I’m unable to see a report of this specifically). Which version are you currently running?

I look forward to hearing back!

Best regards,

Kenny

Hi, I’m having version 2018.9.3, we’ll try to update to latest, but I’m not sure when it will happen

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.