Pre-signed URL for PUT object request with canned-acl contains query parameter x-amz-acl
#3052
-
While constructing the PUT object presigned URL with canned-acl in PHP AWS SDK (3.335.0) the presigned URL contains query parameter Other SDKs (Atleast Java & Go) when asked to do same thing, they don't include the query param I couldn't find any official documentation on what is the right behavior, should query param also contain the canned-acl in addition to the request header? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @JigarJoshi, sorry to hear about this issue. Can you please provide a simple code example that I can use to reproduce the error you are seeing?. Also, quick question, did this start happening to you on/after version I look forward to your response. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Here is the minimal code to reproduce this PUT presigned URL that includes
composer.json has following
I was able to reproduce it also on 3.0.0. So this is more of a question - is this expected behavior because the other language SDKs don't follow the same behavior. Also I couldn't find any official document detailing this. |
Beta Was this translation helpful? Give feedback.
-
Hi @JigarJoshi, thanks for bringing this up. I am not sure why our current implementation kept this header as to be signed, but, even when our current behavior works with not issue, I will create a backlog item to look into this and if this is not kept for backward compatibility reason then I will provide a small fix for it. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @yenfryherrerafeliz can you provide an update on your findings here? I am trying to understand what is the right behavior. |
Beta Was this translation helpful? Give feedback.
Hi @JigarJoshi, thanks for bringing this up. I am not sure why our current implementation kept this header as to be signed, but, even when our current behavior works with not issue, I will create a backlog item to look into this and if this is not kept for backward compatibility reason then I will provide a small fix for it.
Thanks!