awslabs / aws-js-s3-explorer

AWS JavaScript S3 Explorer is a JavaScript application that uses AWS's JavaScript SDK and S3 APIs to make the contents of an S3 bucket easy to browse via a web browser.
Apache License 2.0
815 stars 272 forks source link

Accessing bucket but can't list folders #67

Open kszpirak opened 4 years ago

kszpirak commented 4 years ago

I've followed all the instructions but can't see any of the root folders of the bucket. However I don't see any errors, so the buckets are being retrieved correctly and the object count is showing up in the top right corner. I am not sure what I may be doing wrong. (Top right corner of the screenshot) Any ideas of what may be happening?

Screen Shot 2019-11-09 at 7 45 40 PM

Bucket Policy:

I am logging in through this JS app as user other than AWS-somerootUser, with full S3 permissions.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "BucketPolicyForSFTP",
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::123123123123:role/AWS-somerootUser"
            },
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::mybucket",
                "arn:aws:s3:::mybucket/*"
            ]
        }
    ]
}

My CORS:


<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
    <AllowedOrigin>*</AllowedOrigin>
    <AllowedMethod>GET</AllowedMethod>
    <AllowedMethod>POST</AllowedMethod>
    <AllowedMethod>PUT</AllowedMethod>
    <AllowedMethod>HEAD</AllowedMethod>
    <MaxAgeSeconds>3000</MaxAgeSeconds>
    <ExposeHeader>ETag</ExposeHeader>
    <ExposeHeader>x-amz-meta-myheader</ExposeHeader>
    <AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
john-aws commented 4 years ago

Just to confirm, are you saying that you see no errors and nothing unusual in the developer tools console?

kszpirak commented 4 years ago

Nothing unusual. No console errors at all. Bucket contents show on Overview page of I go into S3 through AWS console.

Screen Shot 2019-11-11 at 1 09 42 PM
kszpirak commented 4 years ago

I am wondering if there is any hope for resolution on this issue? I could speak directly to a person in charge of this dev effort to go over the settings and figure out what may be going wrong. Thanks.

danil-smirnov commented 4 years ago

@kszpirak I wasn't able to reproduce the issue so can't say anything. But I see that the bucket name is not displayed next to "Amazon S3 Explorer (v2 alpha)" as it should on your screenshot. What browser do you use?

john-aws commented 4 years ago

@kszpirak Hi, you provided 3 lines from the console log. Was that everything? When I run this project, I see at least 20 lines. I presume you cut some lines out of your submission.

Could you run this in a different browser and in an incognito session. Preferably with no browser extensions. And preferably with no custom/user CSS stylesheet, just in case you have that.

Also, I'm not sure what scriplet.nl is. It appears in your console log. Are you pre-processing the repo files in some way before deploying them to your bucket? Are you able to deploy the code natively?