You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is embedding XML in a bagit-info.txt file correct / valid? I've tried validating the bag with Bagger and bagit-python. Both fail to verify the bag, but then again, those also verify against version 0.97 of the specification, while bagit.txt contains BagIt-Version: 1.0.
RODA-In version: 2.7.3
Thank you for looking into this.
The text was updated successfully, but these errors were encountered:
Having looked a bit further into this, I've noticed that the problem is with the generated bag-info.txt file. Both RODA and RODA-in use the commons-ip library. After writing a quick Java program to test this library, I was able to read the output of the BagitSIP.getValidationReport function.
Turns out that validation fails due to these errors:
Line [] does not meet the Bagit specification for a bag tag file. Perhaps you meant to indent it by a space or a tab? Or perhaps you didn't use a colon to separate the key from the value? It must follow the form of : or if continuing from another line must be indented by a space or a tab.
and
Line [] does not meet the Bagit specification for a bag tag file. Perhaps you meant to indent it by a space or a tab? Or perhaps you didn't use a colon to separate the key from the value? It must follow the form of : or if continuing from another line must be indented by a space or a tab.
Changing the bag-info.txt to the below and re-packaging the bag before uploading fixes the validation errors in RODA:
Hi!
When I try to ingest a basic bag created with roda-in in a roda community edition instance, the ingest will fail with this error in the UI:
I'm following these steps:
prefix-0001234
with a single PDF file.creator
field of the form.The result is a ZIP file which I then try to upload into RODA following these steps:
Looking inside the bag, I notice this structure in
bag-info.txt
:Is embedding XML in a
bagit-info.txt
file correct / valid? I've tried validating the bag with Bagger and bagit-python. Both fail to verify the bag, but then again, those also verify against version 0.97 of the specification, whilebagit.txt
containsBagIt-Version: 1.0
.RODA-In version: 2.7.3
Thank you for looking into this.
The text was updated successfully, but these errors were encountered: