Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1233

Ingest of AtomZIP files fails with FileNotFoundException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 3.8.0
    • Fix Version/s: Fedora 3.8.1
    • Component/s: legacy - Fedora
    • Labels:
      None
    • Roadmap Theme:
      Interface: REST/HTTP, Storage: Replication/Migration

      Description

      Fedora allows exporting whole objects in AtomZIP1.1 file, but ingesting this file doesn't work. No error is presented in front end applications.

      However, logs fill with FileNotFoundExceptions like this:
      ```
      Unable to read temp file created for datastream from archive for qucosa:1 / ATT-1
      java.io.FileNotFoundException: /home/claussni/opt/apache-tomcat-7.0.55/temp/atomzip7872738724372657615/ATT-1.0.pdf (No such file or directory)
      ```

      Root cause is that the temporary folder ```/atomzip7872738724372657615/``` doesn't exist on ingest time.

      The bug is in ```org.fcrepo.server.storage.translation.AtomDODeserializer.deserialize()```. The temporary directory gets deleted after building the new digital object, but references for managed datastreams still point there.

        Attachments

          Activity

            People

            • Assignee:
              barmintor Benjamin Armintor
              Reporter:
              claussni Ralf Claussnitzer
              Reviewer:
              Ralf Claussnitzer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: