Search on S3: a Last modified filter with a start date leaves out every folder #1134

Closed
opened 2026-11-06 00:22:53 +00:00 by Cordy · 1 comment
Owner

Found in the batch 2 research (research-1119.md, research-1132.md, 2026-11-05), from reading the code at 666c3d3b: on S3 a folder has no stored time when the server looks it up directly (Stat), so the search access check treats its time as zero. Any Last modified filter that sets a start date (Today, 7 days, 30 days, This year) then rejects every folder on S3, in name search, the walk fallback and (with #1119) tag: searches. POSIX is not affected.

Decision (Nikola, 2026-11-06, with batch 2): a folder with no stored time passes date filters as "unknown" instead of failing them; one rule in the access check, the walk, the space candidates (#1132) and tags/find. Built in batch 2 (b2v07, v0.6.400) as its own task, with tests on S3 and POSIX.

Found in the batch 2 research (research-1119.md, research-1132.md, 2026-11-05), from reading the code at 666c3d3b: on S3 a folder has no stored time when the server looks it up directly (Stat), so the search access check treats its time as zero. Any Last modified filter that sets a start date (Today, 7 days, 30 days, This year) then rejects every folder on S3, in name search, the walk fallback and (with #1119) `tag:` searches. POSIX is not affected. Decision (Nikola, 2026-11-06, with batch 2): a folder with no stored time passes date filters as "unknown" instead of failing them; one rule in the access check, the walk, the space candidates (#1132) and `tags/find`. Built in batch 2 (b2v07, v0.6.400) as its own task, with tests on S3 and POSIX.
Author
Owner

Shipped in v0.6.400 (PR #1136), live on both dogfoods. On S3 a folder without a time passes the Last modified filters as unknown (name search, its slower walk, tag: searches); a file without a time is still left out; POSIX unchanged. Live check on the #1005 list.

Shipped in **v0.6.400** (PR #1136), live on both dogfoods. On S3 a folder without a time passes the Last modified filters as unknown (name search, its slower walk, `tag:` searches); a file without a time is still left out; POSIX unchanged. Live check on the #1005 list.
Cordy closed this issue 2026-11-06 12:13:16 +00:00
Sign in to join this conversation.
No labels
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: Cordy/Cairn#1134
No description provided.