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

URL decode s3 key in s3:ObjectCreated #5692

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tontinton
Copy link
Contributor

When a file includes :, it gets converted to %3A, and doing GetObject fails.

@tontinton tontinton force-pushed the url-decode-s3-key-in-url branch 3 times, most recently from 4c060d0 to 4514f64 Compare February 24, 2025 08:54
Copy link
Member

@guilload guilload left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This deserves a unit test. @rdettai, I'll let you take over the review.

@@ -271,6 +271,7 @@ ulid = "1.1"
username = "0.2"
utoipa = { version = "4.2", features = ["time", "ulid"] }
uuid = { version = "1.10", features = ["v4", "serde"] }
urlencoding = "2.1.3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, insert between ulid and username.

@@ -46,6 +46,7 @@ tokio = { workspace = true }
tracing = { workspace = true }
ulid = { workspace = true }
utoipa = { workspace = true }
urlencoding = { workspace = true }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@guilload guilload requested a review from rdettai February 24, 2025 15:54
When a file includes `:`, it gets converted to `%3A`, and doing
`GetObject` fails.
@tontinton tontinton force-pushed the url-decode-s3-key-in-url branch from 4514f64 to 2225e01 Compare February 24, 2025 19:34
@tontinton tontinton requested a review from guilload March 11, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants