Repository navigation
fix(storage): list local directory entries by literal name - #15033
Conversation
Local scanned directories with glob, so an entry named like a pattern (such as *) expanded into its siblings, including symbolic links, and recursive deletes reached files outside the directory. Entries also skipped names starting with two dots. Directories are now listed with scandir.
|
Review complete. No issues found — approved ✅. This PR reworks how the local storage device enumerates directory entries during recursive path deletion, replacing glob pattern matching with literal entry names from scandir so that filenames containing glob metacharacters no longer match unintended sibling paths, and adds unit tests covering literal-name deletion, glob-character filenames, and symlink handling.
One domain scan (filesystem-operations) did not publish output; its checklist was substantially overlapped by the correctness, security, and holistic scans, which all completed. Reviewed commit: fec0120 |
🟢 Tier S · Ready to merge
The local storage directory scanner now uses
📂 Walkthrough · 2
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Local scanned directories with glob, so an entry named like a pattern (such as *) expanded into its siblings, including symbolic links, and recursive deletes reached files outside the directory. Entries also skipped names starting with two dots. Directories are now listed with scandir.
Lint, PHPStan and the touched unit tests passed locally before rebasing on main; e2e runs in CI.
Related: appwrite-labs/cloud#6674