Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARQ not rejecting surrogates in query strings. #2979

Open
afs opened this issue Jan 28, 2025 · 1 comment
Open

ARQ not rejecting surrogates in query strings. #2979

afs opened this issue Jan 28, 2025 · 1 comment
Assignees

Comments

@afs
Copy link
Member

afs commented Jan 28, 2025

Version

Up to 5.3.0

What happened?

        String queryString = "SELECT * { ?s <http://example/p> '\\uD800'. }";
        QueryFactory.create(queryString, Syntax.syntaxARQ);

NB The double backslash

This should throw a parse error because the surogate is not allowed.

Syntax.syntaxSPARQL_12 correctly throws an exception.

Are you interested in making a pull request?

Yes

@afs
Copy link
Member Author

afs commented Feb 12, 2025

There is a fix for this on my RDF-1.2 development branch.
The fix is connected to the SPARQL parser which had modifications for RDF 1.2 and a fix on main would be a conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant