I’ve been trying to create a wrapper API which internally makes a REST call to the Content HAL API. The aim is to retrieve documents based on fields matching or being greater than certain values in the request.
Creating an xpath query and adding it as a query param for _expr should do the job according to the documentation. However when creating queries with invalid URL characters it will be rejected. Even when URL encoded.
I am not sure how to give a query such as this in the _expr:
//element(*,doc)[hippostdpubwf:lastModificationDate>xs:dateTime(‘2000-00-00T00:00:00.000Z’)]
Is there another possibility that I have overlooked which is better suited for my case?
Thanks for reading and apologies if this question has been asked before. I was not able to find a solution.
as an update: seems to be a tomcat issue with not accepting < or > even in their url encoded %3C and %3E which is odd as it does accept other percent encoded characters.
tomcat connector might need adjustments too (recently there was a change, and tomcat is not accepting certain characters it did accept in previous versions)
I was able to let tomcat accept other unsafe characters {} [] | with relaxedQueryChars/relaxedPathChars. Regardless, <> and %3C %3E do not wish to be let through by tomcat when spun up by cargo.
When spinning up a separate tomcat container, this issue is not there.
Nonetheless, I’ll keep trying and send an update if it works out.