Incorrect source path in generated LL for implicit container #89
Labels
No labels
area/api_cli
area/apps
area/content_model
area/framework
area/infrastructure
area/integrity
area/io
area/presentation
area/preservation
area/rdf
area/security
area/submission
area/ui
s
blocked
s
done
s
progress
s
testing
s
wontfix
p
critical
p
high
p
low
p
normal
t
bug
t
documentation
t
enhancement
t
feature
t
test
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ktx/pocket_archive#89
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If I submit a LL such as:
This creates a
still_imageimplicit container with the givenRND001ID, and astill_image_filemember with a new random ID, let's sayRND002. So far so good; but the source path of the container is set toRND0001, and the one of the image todata/RND0001/img1.tif. This is wrong because a generated LL cannot be submitted using the original file paths:The source path of the container should be empty and the one of the image the same as the original LL:
This requires some more design and implementation work. The way single-file containers are implemented at the moment is a bit messy and confusing.
Since single-file containers are a shortcut, they can have more restrictions to make them more predictable without sacrificing flexibility.
The rules should be:
source_pathpointing to a file in the SIP andcontent_typethat is not a subtype offile, it is considered a shortcut for a single-file container.source_pathvalue.dirname) of the providedsource_pathvalue. << NEW RULEThe last rule requires that all the paths in the LL are scanned in advance. This may have been attempted before, with or without success. Need to review this step.
The above proposal is not practical to implement. It would require putting each single file in a different directory, which would create more work than the shortcut saves.
It should be fine to leave the current logic, according to which the container is always created without a source path. It is perfectly legal and reproducible in a round-trip. After all, folders have no special significance for PKAR resources. They are a convenience for the depositor to structure the SIP, which PKAR takes care of reproducing them on restore.