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

putObject Error #16

Open
jdsimcoe opened this issue Sep 15, 2014 · 6 comments
Open

putObject Error #16

jdsimcoe opened this issue Sep 15, 2014 · 6 comments

Comments

@jdsimcoe
Copy link
Contributor

So Symphony is throwing up this error:

User Warning: GenericErrorHandler 512: S3::putObject(): [AccessDenied]
Access Denied on line 358 of file /Users/jdsimcoe/Sites/fire/extensions/s3upload_field/lib/S3.php

I have a user policy on my S3 bucket that allows uploading/deleting and have tested this in Transmit successfully.

Here is my policy:

{
   "Statement":[
      {
         "Effect":"Allow",
         "Action":[
            "s3:ListAllMyBuckets"
         ],
         "Resource":"arn:aws:s3:::*"
      },
      {
         "Effect":"Allow",
         "Action":[
            "s3:ListBucket",
            "s3:GetBucketLocation"
         ],
         "Resource":"arn:aws:s3:::bucket-name"
      },
      {
         "Effect":"Allow",
         "Action":[
            "s3:PutObject",
            "s3:GetObject",
            "s3:DeleteObject"
         ],
         "Resource":"arn:aws:s3:::bucket-name/*"
      }
   ]
}

Any ideas?

@jdsimcoe jdsimcoe changed the title PutObject Error putObject Error Sep 15, 2014
@michael-e
Copy link
Member

I never used these policies. Have you tried to use a different bucket (without special policy)?

@michael-e
Copy link
Member

Any news on this?

@jdsimcoe
Copy link
Contributor Author

I just used a different policy and uploading worked.

@michael-e
Copy link
Member

So was it an issue with the S3 policy? Can we close this?

@jdsimcoe
Copy link
Contributor Author

Well, in theory the policy I created should have worked with Symphony. It worked in Transmit to upload/delete files. My policy allowed access to putObject as you can see from code. I still think my policy should have worked because it works in other applications.

@michael-e
Copy link
Member

Hmmm. As I said, I have no experience with S3 policies (and very limited time), so hopefully someone else can help here with testing an debugging.

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

No branches or pull requests

2 participants