Incorrect source path in generated LL for implicit container #89

Open
opened 2026-10-14 20:14:25 +00:00 by scossu · 0 comments
Owner

If I submit a LL such as:

content_type,id,source_path
still_image,RND001,data/img1.tif

This creates a still_image implicit container with the given RND001 ID, and a still_image_file member with a new random ID, let's say RND002. So far so good; but the source path of the container is set to RND0001, and the one of the image to data/RND0001/img1.tif. This is wrong because a generated LL cannot be submitted using the original file paths:

content_type,id,source_path
still_image,RND001,data/RND001
still_image_file,RND002,data/RND001/img1.tif

The source path of the container should be empty and the one of the image the same as the original LL:

content_type,id,source_path
still_image,RND001,
still_image_file,RND002,data/img1.tif
If I submit a LL such as: ``` content_type,id,source_path still_image,RND001,data/img1.tif ``` This creates a `still_image` implicit container with the given `RND001` ID, and a `still_image_file` member with a new random ID, let's say `RND002`. So far so good; but the source path of the container is set to `RND0001`, and the one of the image to `data/RND0001/img1.tif`. This is wrong because a generated LL cannot be submitted using the original file paths: ``` content_type,id,source_path still_image,RND001,data/RND001 still_image_file,RND002,data/RND001/img1.tif ``` The source path of the container should be empty and the one of the image the same as the original LL: ``` content_type,id,source_path still_image,RND001, still_image_file,RND002,data/img1.tif ```
scossu added this to the v1.1.0 milestone 2026-10-14 20:14:25 +00:00
scossu modified the milestone from v1.1.0 to 1.0.x bugfixes 2026-10-15 02:06:00 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ktx/pocket_archive#89
No description provided.