>From Murtadha Hubail <[email protected]>: Attention is currently required from: Ian Maxon.
Murtadha Hubail has posted comments on this change by Murtadha Hubail. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21959?usp=email ) Change subject: [NO ISSUE][EXT] Fix the library listing when databases are in use ...................................................................... Patch Set 1: (1 comment) Patchset: PS1: > the specific reason is that it is making the traversal code more permissive > (i.e. […] I think we both agree that we should go the Metadata catalog route. For the record, the listing API takes no user input, and I believe the patch doesn't widen what the walk can reach or what the listing can return. So it shouldn't introduce any path traversal or data-exposure issue that wasn't already there. It also meets both conditions you stated: - Only the expected storage pattern is traversed. The walk starts at the fixed storageDirPath and doesn't follow symlinks. Every folder that doesn't match [db/]dv/[^dv2/...]/lib gets SKIP_SUBTREE. - Only expected names are returned. A name comes only from a folder that matches that pattern and contains a revision folder. The patch also has a unit test covering the database (cloud) and non-database layouts, multi-part dataverses, folders that aren't libraries, and stray files. As discussed, let's start by disabling this API and go the Metadata catalog route when we revisit it. -- To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/21959?usp=email To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: asterixdb Gerrit-Branch: master Gerrit-Change-Id: Ic0300108f9ee051415b68b05932dab6effc1dbaf Gerrit-Change-Number: 21959 Gerrit-PatchSet: 1 Gerrit-Owner: Murtadha Hubail <[email protected]> Gerrit-Reviewer: Ian Maxon <[email protected]> Gerrit-Reviewer: Jenkins <[email protected]> Gerrit-Reviewer: Murtadha Hubail <[email protected]> Gerrit-Attention: Ian Maxon <[email protected]> Gerrit-Comment-Date: Sun, 04 Oct 2026 13:19:53 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Murtadha Hubail <[email protected]> Comment-In-Reply-To: Ian Maxon <[email protected]>
