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

Error import with HTTP 412 Precondition Failed

    XMLWordPrintable

    Details

      Description

      Import plant patent dataset produce error "HTTP 412 Precondition Failed":
      WARN 15:53:55.499 (Importer) Adding If-Unmodified-Since header: Fri, 26 May 2017 22:53:22 GMT
      ERROR 15:53:55.501 (Importer) Error while importing .../fcrepo/rest/fd/e3/a3/e1/fde3a3e1-c6cd-46af-a859-254627e6258a.ttl (412): HTTP 412 Precondition Failed

      Step to replicate:

      • Start Fedora 4.8.0-SNAPSHOT:
        $ java -Dfcrepo.properties.management=relaxed -jar bin/fcrepo-webapp-4.8.0-SNAPSHOT-jetty-console-a07a1a46.jar --port 8080 --headless --contextPath /fcrepo
      • Restore plant patent dataset:
        curl -i -X POST --data-binary "1473315261896-0" "http://localhost:8080/fcrepo/rest/fcr:restore"
      • Export the dataset:
        java -jar -Dfcrepo.log.importexport=DEBUG bin/fcrepo-import-export-0.1.1-SNAPSHOT.jar -b -m export -d data -r http://localhost:8080/fcrepo/rest
      • Start another server:
        $ java -Dfcrepo.home=fcrepo4-data-2 -Dfcrepo.dynamic.jms.port=61717 -Dfcrepo.dynamic.stomp.port=61713 -Dfcrepo.properties.management=relaxed -jar bin/fcrepo-webapp-4.8.0-SNAPSHOT-jetty-console-a07a1a46.jar --port 8686 --headless --contextPath /f4
      • Import the exported dataset:
        $ java -jar bin/fcrepo-import-export-0.1.1-SNAPSHOT.jar -m import -d data -M http://localhost:8080/fcrepo/rest,http://localhost:8686/f4/rest -r http://localhost:8686/f4/rest

      The "HTTP 412 Precondition Failed" error will appear repeatedly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                esc Esmé Cowles
                Reporter:
                lsitu Longshou Situ
                Reviewer:
                Andrew Woods
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: