-
-
Notifications
You must be signed in to change notification settings - Fork 906
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
Error 405 (MethodNotAllowed) when running "s3cmd info" in version 2.0.0 #885
Comments
Currently the code is like this:
So we raise the exception if not 404 or 501. And here is what is stated by aws documentation for the GET policy call: http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETpolicy.html
So, in your case, the issue probably comes from the fact that you are not the owner of the other bucket? I will add a specific message for this case. |
@yzargari Can you give a try to my fix? And so check that it really was the origin of your issue? |
Thanks @fviard - your changes did fix my problem... |
I will wait a few days to see if there are other regressions that shows up and then do a new release. |
Many thanks! |
Hello,
I recently found out that "s3cmd info" returns error 405 when running version 2. Same command on the same bucket returns correct results in 1.6.0.
There are Get* and List* permissions on that bucket.
Is this a bug? Cloud this have started from a change AWS did?
Thanks!
Update:
Just realized this happens when trying to get the bucket policy. It only happens when trying it on a bucket that's located on a different AWS account. Anyone knows if it requires other permissions on cross-account access?
Update 2:
So after talking to AWS support, they say that policy cannot be retrieved cross account. This raised an important question; If this isn't possible, howcome it worked on version 1.6? After testing s3cmd 1.6 in same-account access and cross-account access, it appears that policy was not retrieved on cross-account access - BUT is didn't fail:
same-account:
cross-account:
Did 1.6 had an error-ignore mechanism that is no longer in 2.0?
The text was updated successfully, but these errors were encountered: