Closed DiegoPino closed 4 years ago
Thank you for this, @DiegoPino !
I'll see if I can free up some time from either @patdunlavey or @emudojo to test and merge this (cc @dmer )
@noahwsmith thanks!
@DiegoPino I tested this on our LASIR_DEMO server and it seems fine. Can you confirm that Pat's PR works for you?
@noahwsmith thanks!! @patdunlavey thanks also =) can check tomorrow morning, will let you know.
@noahwsmith this looks Ok, sorry for the delay. Its a 1:1 of what i suggested and i tested that in production. Thansk
Thanks @DiegoPino !
@dwk2 I don't have merge ability on this repo, but I recommend accepting the PR to address the bug Diego raised.
Thank you @patdunlavey , @DiegoPino and @noahwsmith ! Closing issue.
Hi,
If XACML module is disabled and, e.g, a Book is removed from the repository, IW triggers a sub batch to clear any possible Orphan Children. To fetch the list of Children it executes a SPARQL query, which ends being malformed and triggering a 500 error when send via Tuque.
A
.
before theOPTIONAL
statement is the culprit since, without XAML optionals, it ends concatenating 2x dots in a row, which is invalid SPARQL.This error is quite annoying since it breaks the running Batch (the main, core, Book deletion) leaving the user without enough information to react and forcing them to go and have a bitter coffee in despair.
This happens here
https://github.com/Islandora-Collaboration-Group/islandora_webform/blob/99bc00c58c0c08bd1f020afb87787f9634cc387e/submodules/islandora_webform_ingest/includes/utilities.inc#L881
Malfored SPARQL Query
Correct SPARQL Query (don't mind the blank line there...)
Solution is to replace current OPTIONAL string formatters for this