Catalog cannot handle SDs with escaped characters
When sending a self-description to the catalog that contains escaped apostrophes anywhere (i.e. \"
) the catalog will reject the request with the following error message:
message -> {TextNode@17122} ""Triple <ServiceOffering:808f5800-4b53-4f15-a0ab-3166ca2e1802> <http://w3id.org/gaia-x/gax-trust-framework#name> \"Test with \"special\" characters\" . \n has syntax error: [line: 1, col: 118] Triples not terminated by DOT""
In this example I've entered
(...) gax-trust-framework:name": { "@type": "xsd:string", "@value": "Test with \"special\" characters" }, (...)
as the name for the offering in the SD JSON payload.
A similar behavior gets triggered wenn including escaped backslashes (\\
).
I have been able to reproduce this issue both with the version tagged at 1.0.1 as well as the latest commit at this time (b6939bd8).