Prevent unsupported characters from being used in as subjects

Created on 13 October 2023, 9 months ago
Updated 29 November 2023, 7 months ago

This was discovered by a warning we received when some user tried to load something that seemed like a string starting with double quotes.
While this is not a valid IRI, the IRIs are very extended strings and are not easy to handle all together.

In this issue, I will try to:

  • Provide a mechanism to detect unsupported characters in URIs. The unsupported characters will be based on the library we are using, sweetrdf/easyrdf.
  • Alter the load method of SparqlEntityStorage class to filter out problematic URLs. The reason for filtering them out is to prevent logging too many warnings about invalid characters from potentially malicious attacks.
  • Alter the ::doSave to throw an exception, when an attempt is made to save an entity without valid characters.
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇷Greece idimopoulos

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024