Skip to content

Sanitise URIs that otherwise escape#25

Merged
der merged 1 commit intomainfrom
sanitise-uri
Mar 19, 2026
Merged

Sanitise URIs that otherwise escape#25
der merged 1 commit intomainfrom
sanitise-uri

Conversation

@der
Copy link
Member

@der der commented Mar 19, 2026

A filter parameter with a valuebase gets turned into a URI and the Jena createURI (at least in this version) doesn't sanitise. Which means that characters like < and > in a search term can make it into the SPARQL and then fail in fuseki.

There may be much deeper sanitisation we could do but since sapi is deprecated for future use sticking to the narrower fix for the presenting problem.

Addresses: https://github.com/epimorphics/fsa-cat-api/issues/24

@der der requested a review from kal March 19, 2026 17:43
Copy link
Contributor

@kal kal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@der der merged commit 7ec77fc into main Mar 19, 2026
3 checks passed
@der der deleted the sanitise-uri branch March 19, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants