Status Code: 403, while Getting an Object that doesn't exists

13,754

As pointed by user1585811, this is the best explanation

https://forums.aws.amazon.com/thread.jspa?messageID=210268

Share:
13,754
daydreamer
Author by

daydreamer

Hello Viewer, Some of the places to see my work are BonsaiiLabs My Website

Updated on June 28, 2022

Comments

  • daydreamer
    daydreamer almost 2 years

    I have a user - Manager with S3Actions.GetObject, S3Actions.PutObject assigned to it

    • When I put and Object and get it, everything is fine
    • When I get an Object that doesn't exists, it throws

    }

    Status Code: 403, AWS Service: Amazon S3, AWS Request ID: 2A23D3118F9FFB08, AWS Error Code: AccessDenied, AWS Error Message: Access Denied, S3 Extended Request ID: 3h4D2Ks9skcSab3zkV/nedmm9b8WLL+92DESbOx9xGipkH7P69QQiJLVWyDowASi
        at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:556)
        at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:289)
        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:170)
        at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:2724)
        at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:866)
        at com.sr.sparrow.business.xml.persist.S3Service.getInputStream(S3Service.java:58)
    

    Why is it not throwing 404/NoSuchKey?