Closed dbernstein closed 5 years ago
Hi Danny - great instructions to test with above! When running this against the 5.1.0- RC using the jetty server, I'm seeing this stack trace from the import/export tool:
INFO 14:48:15.474 (Exporter) Exported http://localhost:8080/rest/container/binary/fcr:versions/20190710184436 to /private/tmp/fcrepo-ie/export/rest/container/binary/fcr%3Aversions/20190710184436.binary INFO 14:48:15.474 (Exporter) Already exported http://localhost:8080/rest/container/binary/fcr:metadata java.lang.RuntimeException: Export operation failed: unexpected status 400 for http://localhost:8080/rest/container/binary/fcr:versions/fcr:acl at org.fcrepo.importexport.common.TransferProcess.checkValidResponse(TransferProcess.java:203) at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:269) at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:289) at org.fcrepo.importexport.exporter.Exporter.exportVersions(Exporter.java:525) at org.fcrepo.importexport.exporter.Exporter.exportBinary(Exporter.java:332) at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:277) at org.fcrepo.importexport.exporter.Exporter.exportMembers(Exporter.java:431) at org.fcrepo.importexport.exporter.Exporter.exportRdf(Exporter.java:387) at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:280) at org.fcrepo.importexport.exporter.Exporter.exportMembers(Exporter.java:431) at org.fcrepo.importexport.exporter.Exporter.exportRdf(Exporter.java:387) at org.fcrepo.importexport.exporter.Exporter.export(Exporter.java:280) at org.fcrepo.importexport.exporter.Exporter.run(Exporter.java:227) at org.fcrepo.importexport.ImportExportDriver.run(ImportExportDriver.java:58) at org.fcrepo.importexport.ImportExportDriver.main(ImportExportDriver.java:47)
And from fcrepo:
INFO 14:48:15.390 (FedoraLdp) HEAD for: container/binary INFO 14:48:15.451 (FedoraLdp) HEAD for: container/binary/fcr:versions/20190710184436 INFO 14:48:15.467 (FedoraLdp) GET resource 'container/binary/fcr:versions/20190710184436' INFO 14:48:15.485 (FedoraLdp) HEAD for: container/binary/fcr:versions/20190710184436 INFO 14:48:15.544 (FedoraAcl) GET resource 'container/binary/fcr:versions/' ERROR 14:48:15.544 (RepositoryExceptionMapper) Caught a repository exception: Error converting "fcr:versions" from String to a Name
What I've distilled this down to is this call failing:
curl http://localhost:8080/rest/container/fcr:versions/fcr:acl Error converting "fcr:versions" from String to a Name
Whoops! I was using RC-1 and not RC-2. RC-2 doesn't have the issue (as expected).
This tests out well and looks good to me. I left a few fairly minor code comments.
… commit is a fix that ensures that the versions flag is respected on import.
Resolves: https://jira.duraspace.org/browse/FCREPO-2982 https://jira.duraspace.org/browse/FCREPO-3002
There are integration tests covering this functionality.
To test manually:
-Dfcrepo.properties.management=relaxed
flag when starting Fedora.