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

Improve logging for HTTP exception in export with binary excluded

    Details

      Description

      When exporting with binary excluded (the plantpatents dataset restored from plants.tar.gz), the ResourceNotFoundRuntimeException will be logged for an existing resource like http://localhost:8080/fcrepo/rest/audit/c0/c8/af/98/c0c8af98-72a3-4ce0-96f0-aaf9ac2aa161, while it's the reference resource (<http://localhost:8080/fcrepo/rest/initialize&gt;) that doesn't exist in the repository:
      INFO 11:05:18.899 (Exporter) Exporting description: http://localhost:8080/fcrepo/rest/audit/c0/c8/af/98/c0c8af98-72a3-4ce0-96f0-aaf9ac2aa161
      org.fcrepo.importexport.common.ResourceNotFoundRuntimeException: resource not found at http://localhost:8080/fcrepo/rest/audit/c0/c8/af/98/c0c8af98-72a3-4ce0-96f0-aaf9ac2aa161
      at org.fcrepo.importexport.common.TransferProcess.checkValidResponse(TransferProcess.java:192)
      at org.fcrepo.importexport.exporter.Exporter.filterBinaryReferences(Exporter.java:377)
      at org.fcrepo.importexport.exporter.Exporter.exportDescription(Exporter.java:314)
      at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:246)
      at org.fcrepo.importexport.exporter.Exporter.exportMembers(Exporter.java:342)
      at org.fcrepo.importexport.exporter.Exporter.exportDescription(Exporter.java:333)
      at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:246)
      at org.fcrepo.importexport.exporter.Exporter.exportMembers(Exporter.java:342)
      at org.fcrepo.importexport.exporter.Exporter.exportDescription(Exporter.java:333)
      at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:246)
      at org.fcrepo.importexport.exporter.Exporter.run(Exporter.java:202)
      at org.fcrepo.importexport.ImportExportDriver.run(ImportExportDriver.java:58)
      at org.fcrepo.importexport.ImportExportDriver.main(ImportExportDriver.java:47)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lsitu Longshou Situ
                Reporter:
                lsitu Longshou Situ
                Reviewer:
                Andrew Woods
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: