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

Import using inbound references (-i) throws status 403 error

    Details

      Description

      Running fcrepo-import-export-0.1.1-SNAPSHOT-d4780ca2.jar (https://s3.amazonaws.com/f4-artifacts/fcrepo-import-export-0.1.1-SNAPSHOT-d4780ca2.jar) to export and then import the plantpatents dataset (restored from plants.tar.gz) with the following commands will produce errors like "(403): http://localhost:8686/f4/rest/plantpatents is not in the topic of this RDF":
      $ java -Dfcrepo.log.importexport=DEBUG -jar bin/fcrepo-import-export-0.1.1-SNAPSHOT.jar -b -i -a -d data_3b_ -m export -r http://localhost:8080/fcrepo/rest

      $ java -jar -Dfcrepo.log.importexport=DEBUG bin/fcrepo-import-export-0.1.1-SNAPSHOT.jar -b -i -a -m import -d data_3b_ -r http://localhost:8686/f4/rest -M http://localhost:8080/fcrepo/rest,http://localhost:8686/f4/rest

      Here is the log:
      INFO 12:29:02.460 (Importer) Importing container .../data_3b_/fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f.ttl to http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f
      ERROR 12:29:02.626 (Importer) Error while importing .../data_3b_/fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f.ttl (403): http://localhost:8686/f4/rest/plantpatents is not in the topic of this RDF, which is http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f
      DEBUG 12:29:02.627 (Importer) Skipping binary fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/external.external: it will be imported when its metadata is imported.
      DEBUG 12:29:02.627 (Importer) Skipping binary fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/internal.binary: it will be imported when its metadata is imported.
      INFO 12:29:02.628 (Importer) Importing binary fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/external/fcr%3Ametadata.ttl
      INFO 12:29:02.635 (Importer) Imported binary: http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/external
      INFO 12:29:02.640 (Importer) Imported .../data_3b_/fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/external/fcr%3Ametadata.ttl: http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/external
      WARN 12:29:02.641 (riot) [line: 35, col: 34] Lexical form '10/23/2014 17:19:02' not valid for datatype http://www.w3.org/2001/XMLSchema#dateTime
      INFO 12:29:02.641 (Importer) Importing binary fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/internal/fcr%3Ametadata.ttl
      INFO 12:29:02.651 (Importer) Imported binary: http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/internal
      ERROR 12:29:02.661 (Importer) Error while importing .../data_3b_/fcrepo/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/internal/fcr%3Ametadata.ttl (403): http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f is not in the topic of this RDF, which is http://localhost:8686/f4/rest/dd/b0/b8/36/ddb0b836-8574-47af-8978-037787436c5f/internal/fcr:metadata

        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: