-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[AWS] [S3] Remove url.QueryUnescape() from aws-s3 input in polling mode #38125
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
a4323ab
to
a11ed6e
Compare
b5146ca
to
a27e439
Compare
Reopening (closed accidentally) |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
The "x-pack/libbeat: Load dynamic pipeline's steps" is failing, but I don't think it's related to the changes in this PR. |
This pull request is now in conflicts. Could you fix it? 🙏
|
We introduced [^1] the `url.QueryUnescape()` function to unescape object keys from S3 notification in SQS messages. However, the object keys in the S3 list object responses do not require [^2] unescape. We must remove the unescape to avoid unintended changes to the S3 object key. [^1]: elastic#18370 [^2]: elastic#38012 (comment)
62e9992
to
f303b7a
Compare
💚 Build Succeeded
History
cc @zmoog |
💚 Build Succeeded
History
cc @zmoog |
💚 Build Succeeded
History
cc @zmoog |
💚 Build Succeeded
History
cc @zmoog |
💚 Build Succeeded
History
cc @zmoog |
💚 Build Succeeded
History
cc @zmoog |
…de (#38125) * Remove url.QueryUnescape() We introduced [^1] the `url.QueryUnescape()` function to unescape object keys from S3 notification in SQS messages. However, the object keys in the S3 list object responses do not require [^2] unescape. We must remove the unescape to avoid unintended changes to the S3 object key. [^1]: #18370 [^2]: #38012 (comment) --------- Co-authored-by: Andrea Spacca <andrea.spacca@elastic.co> (cherry picked from commit 5f1e656)
…s-s3 input in polling mode (#38165) * [AWS] [S3] Remove url.QueryUnescape() from aws-s3 input in polling mode (#38125) We introduced [^1] the `url.QueryUnescape()` function to unescape object keys from S3 notification in SQS messages. However, the object keys in the S3 list object responses do not require [^2] unescape. We must remove the unescape to avoid unintended changes to the S3 object key. [^1]: #18370 [^2]: #38012 (comment) --------- Co-authored-by: Andrea Spacca <andrea.spacca@elastic.co>
Proposed commit message
Remove
url.QueryUnescape()
from aws-s3 input in polling mode because it is not required.We introduced the
url.QueryUnescape()
function to unescape object keys from S3 notifications in SQS messages when the input runs in SQS. We also used it for object keys from the S3 list objects when the input runs in polling mode. However, the object keys in the S3 list object responses (polling mode) do not require unescape.We must remove the unescape to avoid unintended changes to the S3 object key.
Checklist
I have commented my code, particularly in hard-to-understand areasI have made corresponding changes to the documentationI have made corresponding change to the default configuration filesCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
Related issues