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

Bugfix/lxl 4600 unverified ids #1534

Merged
merged 4 commits into from
Dec 10, 2024
Merged

Conversation

kwahlin
Copy link
Contributor

@kwahlin kwahlin commented Dec 9, 2024

A more defensive approach when loading ids from list. Solves org.apache.jena.query.QueryParseException when running e.g. https://libris-qa.kb.se/katalogisering/directory-care/bulkchanges/2m87134b00vqxm3k where the given link (https://github.com/katnai1/MAV/blob/main/test_radera_Kalmar1.txt) does not point to the actual file (https://raw.githubusercontent.com/katnai1/MAV/refs/heads/main/test_radera_Kalmar1.txt) and thus lots of lines of html were loaded as "ids" and consequently also embedded in the Sparql query for the selection.

Note: The last two commits are unrelated to the above. Just minor flaws that I stumbled over when testing the original fix.

@kwahlin kwahlin requested a review from olovy December 9, 2024 16:02
@kwahlin kwahlin merged commit 15c0356 into develop Dec 10, 2024
1 check passed
@kwahlin kwahlin deleted the bugfix/lxl-4600-unverified-ids branch December 10, 2024 13:04
olovy pushed a commit that referenced this pull request Dec 10, 2024
* Filter out surely invalid ids when collecting short ids

* Load only verified xl ids in collectFormBNodeIdToResourceIds

* Don't add prefix to already prefixed types

* Add missing type declaration
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