-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1/bad-objects/E001_invalid_version_format #104
Comments
To me, the extra directory should trigger
Having said that, if directory |
For what it's worth, I've gone down the road of being overly pedantic about the fixture/error-code correspondence and I feel like my validation code suffered as a consequence. This message from the README is worth taking to heart:
My validator gives E001, E008, and a currently unassigned error (that should be E104):
|
The main reason I raised this issue was, that I feel that constructing an example for E104 would look exactly like the one mentioned |
For what it's worth, I agree with @je4 $ rocfl validate -p 1.1/bad-objects/E001_invalid_version_format
Object urn:example is invalid
Errors:
1. [E104] (root) Inventory 'head' must be a valid version number. Found: 1
2. [E099] (root) Inventory manifest key 'ffc150e7944b5cf5ddb899b2f48efffbd490f97632fc258434aefc4afb92aef2e3441ddcceae11404e5805e1b6c804083c9398c28f061c9ba42dd4bac53d5a2e' contains a path containing an illegal path part. Found: 1/content/my_content/dracula.txt
3. [E099] (root) Inventory manifest key '69f54f2e9f4568f7df4a4c3b07e4cbda4ba3bba7913c5218add6dea891817a80ce829b877d7a84ce47f93cbad8aa522bf7dd8eda2778e16bdf3c47cf49ee3bdf' contains a path containing an illegal path part. Found: 1/content/my_content/poe.txt
4. [E104] (root) Inventory 'versions' contains an invalid version number. Found: 1
5. [E008] (root) Inventory does not contain any valid versions I start with the root inventory as the source of truth. If the root inventory is not valid, I don't bother validating anything else. |
By contrast, my validation starts with the object directory entries, which is why E001 is the first error to be raised. In any case, I would ok with renaming this to E104 since that error isn't represented in the fixtures and there are two others for E001. |
Yeah, it honestly does not matter to me what it's named. Like you said originally, validators will arrive at different codes based on strategy. What's important is that they all agree that it's invalid. |
Hi,
While implementing OCFL checker functionality, the error produced by "1.1/bad-objects/E001_invalid_version_format" is E104 not E001 as suggested in the folder name.
Should the object folder be renamed to "1.1/bad-objects/E104_invalid_version_format"?
best, Jürgen
The text was updated successfully, but these errors were encountered: