bondjimbond / islandora_metadata_extras

Islandora utility module that provides some options for customizing metadata display and generation.
GNU General Public License v3.0
6 stars 2 forks source link

UUID creates "Not Found error" #29

Open bondjimbond opened 5 years ago

bondjimbond commented 5 years ago

Some Citation objects are failing to ingest when the UUID setting is turned on, returning a "not found" error:

Exception during ingest with Message: "Not Found Error", and Trace: #0 /var/www/html/drupal7/sites/all/modules/islandora_metadata_extras/includes/utilities.inc(94): DOMNode->insertBefore(Object(DOMElement), Object(DOMElement)) #1 /var/www/html/drupal7/sites/all/modules/islandora_metadata_extras/islandora_metadata_extras.module(158): islandora_metadata_extras_add_uuid_to_mods('lc:4450', '<?xml version="...') #2 /var/www/html/drupal7/includes/module.inc(1171): islandora_metadata_extras_islandora_datastream_alter(Object(IslandoraNewFedoraObject), Object(IslandoraNewFedoraDatastream), Array, NULL) #3 /var/www/html/drupal7/sites/all/modules/islandora/includes/tuque_wrapper.inc(56): drupal_alter(Array, Object(IslandoraNewFedoraObject), Object(IslandoraNewFedoraDatastream), Array) #4 /var/www/html/drupal7/sites/all/modules/islandora/includes/tuque_wrapper.inc(99): islandora_alter_datastream(Object(IslandoraNewFedoraObject), Object(IslandoraNewFedoraDatastream), Array) #5 /var/www/html/drupal7/sites/all/modules/islandora/islandora.module(1433): IslandoraFedoraRepository->ingestObject(Object(IslandoraNewFedoraObject)) #6 /var/www/html/drupal7/sites/all/modules/islandora/includes/ingest.form.inc(833): islandora_add_object(Object(IslandoraNewFedoraObject)) #7 /var/www/html/drupal7/includes/form.inc(1524): islandora_ingest_form_submit(Array, Array) #8 /var/www/html/drupal7/includes/form.inc(906): form_execute_handlers('submit', Array, Array) #9 /var/www/html/drupal7/includes/form.inc(386): drupal_process_form('islandora_inges...', Array, Array) #10 /var/www/html/drupal7/includes/form.inc(131): drupal_build_form('islandora_inges...', Array) #11 /var/www/html/drupal7/sites/all/modules/islandora_solution_pack_collection/includes/ingest.form.inc(23): drupal_get_form('islandora_inges...', Array) #12 [internal function]: islandora_basic_collection_ingest_action(Object(IslandoraFedoraObject)) #13 /var/www/html/drupal7/includes/menu.inc(527): call_user_func_array('islandora_basic...', Array) #14 /var/www/html/drupal7/index.php(21): menu_execute_active_handler() #15 {main}

This comes from attempting to ingest a typical Citation object in the typical way. Strangely, it looks like the user can ingest one object without problems, but ingesting a second object immediately afterward results in the error. Coming back to it later allows her to ingest an object again successfully, but again the second one creates errors.