Stream: implementers
Topic: Escaping URLs in Bundles
Brian Reinhold (Apr 23 2019 at 15:27):
If I am making a transaction bundle that contains a resource requesting a conditional create, should the ifNoneExists value be URL escaped?
IN an HTTP header it would be.
Grahame Grieve (Apr 23 2019 at 20:41):
I think not
Brian Reinhold (Apr 23 2019 at 21:31):
I think not
If it was not escaped couldn't there be characters in the identifier (I am using the identifier) that might be interpreted as a search parameter?
Grahame Grieve (Apr 23 2019 at 21:53):
well, that brings us the very difficult problem of double escaping in http headers. e.g. https://www.hl7.org/fhir/search.html#escaping
Brian Reinhold (Apr 24 2019 at 09:48):
well, that brings us the very difficult problem of double escaping in http headers. e.g. https://www.hl7.org/fhir/search.html#escaping
I didn't mean that the identifier fields in the resource were URL escaped but when used in the "ifNoneExist" field in the Bundle entry data type that it needs to be escaped. In my case I have an entry as follows:
String theUri = "identifier=" + identifier.getSystem() + "|" + identifier.getValue();
Wouldn't the system and value entries need to be escaped should they have an "|" character?
Grahame Grieve (Apr 24 2019 at 10:35):
yes then they would
Last updated: Apr 12 2022 at 19:14 UTC