Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
Walkthrough
ChangesLocation username parsing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
✅ PR Title Formatted CorrectlyThe title of this PR match the correct format. Thank you! |
c-thiel
left a comment
There was a problem hiding this comment.
Thanks @sivakumar-mahalingam, nice catch!
For context, this does not change behaviour in most cases. The only caller is ADLS location parsing. When a filesystem is present (abfss://fs@account…/foo@bar), the old code already returned the right value. The wrong result only appeared when there was no filesystem, and that location was rejected before and is still rejected now. Only the error message is clearer. It's still good to have the public API correct and consistent.
|
Thanks for the additional context @c-thiel That makes sense, the runtime impact is limited to clearer handling of invalid ADLS locations, while the change keeps the public |
Summary
Fix
Location::username()incorrectly interpreting@characters in object paths as URL user information.Username extraction now examines only the URL authority and uses the last
@as the user-info separator. Locations such ass3://bucket/foo@barnow correctly report no username, while locations containing credentials continue to work as expected.Related issue
Closes #2140
How was this tested?
The location tests passed with:
cargo test -p lakekeeper-io --no-default-features --features storage-s3 location::tests --libResult: 25 passed, 0 failed.
Formatting was validated using the repository's pinned nightly toolchain.
Checklist
Summary by CodeRabbit
@only in the path no longer produce an incorrect username, while userinfo followed by a path is handled correctly.