I am trying to use release_tag API to get all my release tags. The commands from here seem to work with curl. However, when I use it with jboss resteasy, it does not seem to work.
For example, https://api.balena-cloud.com/v6/release_tag?\$filter=release/commit%20eq%20'<COMMIT>'
turns into /release_tag?%24filter=release%2Fcommit+eq+%27<commit>%27
and I get malform request error…
If however, I change the filter to be tag_key, everything seems to work fine.
I understand the special characters’ encodings but was wondering if there is any solutions around this?
I would appreciate any suggestions.
Hi there, just so I understand right, you are saying that jboss resteasy changes the API commands so that you are getting malformed request errors - however if you change the filtet r to be tag_key instead of release then it works?
I’ll as the team if they have any suggestions, but does this happen with many other API calls, or have you only tried it with this one you mentioned?
Hi,
I am also fairly new to this. I am using Quarkus framework, which uses resteasy.
From my understanding, it’s trying to sanitize the URL? I am not sure if its resteasy or something else. I also found this, if it is helpful.
To be more clear, it’s the forward-slash in $filter=release/commit that’s gets changed to forward slash, which makes the request malformed. If I change the release/commit with some other key like tag_key, it works fine.
“/”, “<”, “>”, “&”, “”" (double quote), and “'” (single quote) are escaped to prevent an XSS attack. If this parameter is set to “true”, escaping will not occur.
I’m not able to disable the HTML sanitizer in quarkus. I tried adding different variations of disable.html.sanitizer in the application.properties but no luck so far.