You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a new media item, immediately after choosing a file (and before saving the form), two events are triggered leading to the following two errors in Alpaca
Cannot find JSONLD URL in event message - queue: islandora-indexing-triplestore-index
Failed to invoke method: .object.url[1].href on ca.islandora.alpaca.support.event.AS2Event due to - java.lang.ArrayIndexOutOfBoundsException: 1 - queue: islandora-indexing-fcrepo-media
Steps to reproduce:
add resource (title, resource type ==> moving image, model ==> video)
follow Alpaca container log
add media -> video -> attach file (stop before saving form)
view Alpaca logs and see errors for queue islandora-indexing-triplestore-index and :islandora-indexing-fcrepo-media
Unable to reproduce via workbench
The code that emits the events only adds a url if $entity_type != 'file' and in the above case the entity_type is 'file' thus no url is added to the event/message which in turn causes the alpaca errors as the handles for islandora-indexing-triplestore-index and islandora-indexing-fcrepo-media expect a url attached to the message
Question: should islandora-indexing-triplestore-index and islandora-indexing-fcrepo-media messages be triggered during the file choose action (before the add media form submitted)?
The text was updated successfully, but these errors were encountered:
When adding a new media item, immediately after choosing a file (and before saving the form), two events are triggered leading to the following two errors in Alpaca
Cannot find JSONLD URL in event message
- queue: islandora-indexing-triplestore-indexFailed to invoke method: .object.url[1].href on ca.islandora.alpaca.support.event.AS2Event due to - java.lang.ArrayIndexOutOfBoundsException: 1
- queue: islandora-indexing-fcrepo-mediaSteps to reproduce:
islandora-indexing-triplestore-index
and:islandora-indexing-fcrepo-media
Unable to reproduce via workbench
The code that emits the events only adds a url if
$entity_type != 'file'
and in the above case the entity_type is 'file' thus no url is added to the event/message which in turn causes the alpaca errors as the handles forislandora-indexing-triplestore-index
andislandora-indexing-fcrepo-media
expect a url attached to the messagehttps://github.com/Islandora/islandora/blob/d8d101e5710c42804f06eff0f6c6a4ee3c69adbd/src/EventGenerator/EventGenerator.php#L118-L134
Question: should
islandora-indexing-triplestore-index
andislandora-indexing-fcrepo-media
messages be triggered during the file choose action (before the add media form submitted)?The text was updated successfully, but these errors were encountered: