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

REST Ingesting AtomZip fails unless parameter ignoreMime is set to true

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 3.5, Fedora 3.6
    • Fix Version/s: Fedora 3.6.1
    • Component/s: legacy - Fedora
    • Labels:
      None

      Description

      FedoraObjectResource around line 264:

      If the ingested file is AtomZip, there's a check that the MIMEType is XML-compatible - this won't usually be the case for AtomZip.

      If the test fails, the stream is left as null, and a new blank object is created.

      The logic should be changed so that if a binary ingest format has been specified, this check for XML mime type is skipped.

      Work-around is to specifty the parameter ignoreMime=true

      Can be tested using the web admin client - export an object in AtomZIP format, then try ingesting it; you'll get an NPE (as the ZIP file being read at this point isn't a zip file, it's the template FOXML file created due to the MIME check above resulting in a null inputstream and therefore a template FOXML file being created).

        Attachments

          Activity

            People

            • Assignee:
              eddie Edwin Shin
              Reporter:
              penthes Stephen Bayliss
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: