Resources without path ID do not generate a valid tree #78

Closed
opened 2026-08-27 12:59:26 +00:00 by scossu · 0 comments
Owner

Using the following LL:

source_path,id,content_type,label,description,has_tree,pref_rep
,D8WMKIE4GcJdC33J,collection,Palestine 2002-2003,"Photos taken in the West Bank (Nablus, Jenin, and surroundings) in the summers of 2002 and 2003.",TRUE,

The collection does not generate a tree because of

Lines 236 to 238 in 73faf46
if not src_path or not sub.sip[rsrc_id].data.has_tree then
goto skip
end

has_tree, however, gets processed as a normal attribute and assigned the TRUE (string) value, which results in an error when generating the static site.

If a container doesn't have a path, and has_tree is set, the submission process should raise an error.

Using the following LL: ``` source_path,id,content_type,label,description,has_tree,pref_rep ,D8WMKIE4GcJdC33J,collection,Palestine 2002-2003,"Photos taken in the West Bank (Nablus, Jenin, and surroundings) in the summers of 2002 and 2003.",TRUE, ``` The collection does not generate a tree because of https://git.knowledgetx.com/ktx/pocket_archive/src/commit/73faf46076d90e52ce43dd945561fd2cd82532fd/src/submission.lua#L236-L238 `has_tree`, however, gets processed as a normal attribute and assigned the `TRUE` (string) value, which results in an error when generating the static site. If a container doesn't have a path, and `has_tree` is set, the submission process should raise an error.
scossu added this to the v1.0.0 milestone 2026-08-27 12:59:26 +00:00
Sign in to join this conversation.
No milestone
No project
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#78
No description provided.