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

S3 multi delete request should return XML header in quiet mode

    XMLWordPrintableJSON

Details

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

    Description

      Delete multiple objects with sending XML message to the bucket?delete endpoint is implemented in HDDS-701 according to the aws documentation at https://docs.aws.amazon.com/AmazonS3/latest/API/multiobjectdeleteapi.html

      As the documentations writes:

      {{ By default, the operation uses verbose mode in which the response includes the result of deletion of each key in your request. In quiet mode the response includes only keys where the delete operation encountered an error}}

      In the quiet mode (which is an XML element in the input body) we return the XML only in case of errors based on this paragraph. Without any error we returned *with *empty body.

      But during the executions of s3a unit tests I found that the right response is an empty XML document instead of empty body (in case of quiet mode + without any error)

      <?xml version="1.0" encoding="UTF-8"?>
      <DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">

      Some of the s3a unit tests are failed as without XML response the parsing was unsuccessful.

      Attachments

        1. HDDS-743.001.patch
          5 kB
          Marton Elek

        Activity

          People

            elek Marton Elek
            elek Marton Elek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: