I have a problem with my http client (out of my control) encoding ‘/’ as %2F in filter=device/uuid. More specifically
this call works
wheres this returns a malformed URL server error
Is it intended behaviour of resin backend or a bug? Other encoded parameters work just fine, only this filter param is IMHO not interpreted correctly.
Thanks for reporting this. I’ve been checking the code and I can confirm that the way we are decoding the filter does not have into account encoded chars. However, I wonder if this is something we want to improve or not, so I’ll talk about it with the team.
Can I ask what is that http client you are using to make the calls?
Hi, it was a Paw tool for OSX.
I used it to quickly test and generate http requests for my other cmdline tool dealing with Balena (setting tags, seeing our app specific stuff).
Is it intended behaviour of resin backend or a bug
This is the intended behaviour. Only single and double quotes, + and a couple other characters need to be encoded. If there is an option to use our SDK(s) or
pinejs-client, all of the encoding is handled automatically.