Hi, I have noticed that performing a search by identifier (token) for any resource on my local instance of hapi-fhir-jpaserver-starter, such as the following:
http://localhost:8090/fhir/PARTITION-A/Organization?identifier=https://github.com/synthetichealth/synthea|xyzI get a "400 Bad Request" status.
In the server log, I found the following exception:
java.lang.IllegalArgumentException: Invalid character found in the request target [/fhir/PARTITION-A/Organization?identifier=urn:foo|7000135 ]. The valid characters are defined in RFC 7230 and RFC 3986
If I encode the | character as %7C, the request is accepted by the server.
Please note that the same query, issued to the public FHIR server UHN_HAPI Server (
http://hapi.fhir.org/baseR4), works correctly with the | character, without encoding to %7C.
Which can be the fix on the local instance ?
I am running it both within IntelliJ, as a spring boot application, both as a docker container.
It's a question of some configuration ?