The use of the Drupal variable islandora_oralhistories_media_uploaded_type creates a race condition. When an object being ingested sets the variable and before the variable's use another object of a different type is ingested and sets the variable it will not be accurate when accessed to create the derivatives of the first object. I am planning on submitting a pull request that removes this variable and changes derivatives to rely on the OBJ's mime directly. This will also fix issues with re-running derivatives, command line ingests and OBJ replacement where they may not reflect the current object because the variable is only set in the upload form submit handler. Please let me know if this solution is not acceptable.
The use of the Drupal variable
islandora_oralhistories_media_uploaded_type
creates a race condition. When an object being ingested sets the variable and before the variable's use another object of a different type is ingested and sets the variable it will not be accurate when accessed to create the derivatives of the first object. I am planning on submitting a pull request that removes this variable and changes derivatives to rely on the OBJ's mime directly. This will also fix issues with re-running derivatives, command line ingests and OBJ replacement where they may not reflect the current object because the variable is only set in the upload form submit handler. Please let me know if this solution is not acceptable.