Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/url #1349

Merged
merged 12 commits into from
Feb 21, 2025
Merged

Fix/url #1349

merged 12 commits into from
Feb 21, 2025

Conversation

GuiLorencato
Copy link
Collaborator

@GuiLorencato GuiLorencato commented Feb 20, 2025

What does this PR do?

Fix URL and Signature Encoding for Object Listing

Problem:
The CLI was failing with 403 Forbidden - AccessDenied when listing objects with spaces in the prefix. This happened because:

  • Spaces were encoded as "+" instead of "%20", causing malformed URLs.

  • QueryEscape was used for signature encoding, leading to authentication mismatches.

Solution:

  • Replaced "+" with "%20" in URL encoding.

  • Switched from QueryEscape to PathEscape for signature encoding, ensuring correct request formatting.

How Has This Been Tested?

  • Unit Tests: Describe the unit tests you have written and their outcomes.

  • Integration Tests: Detail the integration tests performed and their results.

  • Manual Testing: Explain the manual testing process, including steps taken and evidence such as screenshots or logs.

Checklist

  • I have run Pre commit pre-commit run --all-files
  • My code follows the style guidelines of this project
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots/Videos

@GuiLorencato GuiLorencato added the bug Something isn't working label Feb 20, 2025
@GuiLorencato GuiLorencato self-assigned this Feb 20, 2025
@GuiLorencato GuiLorencato requested a review from a team as a code owner February 20, 2025 16:56
@publi0 publi0 merged commit a7e1b3d into main Feb 21, 2025
5 checks passed
@publi0 publi0 deleted the fix/url branch February 21, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants