fallintoplace opened a new pull request, #1228:
URL: https://github.com/apache/iceberg-go/pull/1228

   Summary
   
   - validate Hadoop table identifiers before converting them to filesystem 
paths
   - return table-shaped errors for invalid table identifiers and namespace 
errors for invalid ListTables namespaces
   - keep resolved table and namespace paths under the warehouse root as a 
final sanity check
   - add regression coverage for invalid path components and a sibling 
directory outside the warehouse
   
   Why
   
   Hadoop namespace operations already rejected empty components, dot 
components, parent traversal, and path separators. Table operations only 
checked identifier length before building paths with filepath.Join, so 
path-like components could collapse outside the warehouse. This keeps table 
operations on the same path-safety invariant as namespace operations.
   
   Testing
   
   - go test ./catalog/hadoop -count=1
   - go test ./catalog/... -count=1
   - go test ./... -count=1
   - git diff --check


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to