Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-434 Provide an s3 compatible REST api for ozone objects
  3. HDDS-705

OS3Exception resource name should be the actual resource name

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0, 0.4.0
    • None
    • None

    Description

      https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

      <?xml version="1.0" encoding="UTF-8"?> 
      <Error> 
       <Code>NoSuchKey</Code> 
       <Message>The resource you requested does not exist</Message> 
       <Resource>/mybucket/myfoto.jpg</Resource> 
       <RequestId>4442587FB7D0A2F9</RequestId> 
      </Error>

       

      Right now in the code we are print resource as "bucket" , "key" instead of actual resource name.

       

      Documentation shows key name with bucket, but actually when tried on AWS S3 endpoint it shows just key name, found this information when using mitmproxy.

      Attachments

        1. HDDS-705.00.patch
          12 kB
          Bharat Viswanadham

        Activity

          People

            bharat Bharat Viswanadham
            bharat Bharat Viswanadham
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: