Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-665

xml parser for S3 doesn't take namespace into consideration.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • jclouds-blobstore

    Description

      Jclouds by default assumes that the response will be in default namespace which may not be the case always. It should respect the namespace in given xml.
      For S3.
      xml which will get parsed correctly.
      <Error xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
      <Code>InternalError</Code>
      <Message>
      We encountered an internal error. Please try again.
      </Message>
      <Resource>req123</Resource>
      <RequestId>1407808787722531</RequestId>
      </Error>

      below xml will not get parsed correctly...

      <ns0:Error xmlns:ns0="http://s3.amazonaws.com/doc/2006-03-01/">
      <ns0:Code>InternalError</ns0:Code>
      <ns0:Message>
      We encountered an internal error. Please try again.
      </ns0:Message>
      <ns0:Resource>req123</ns0:Resource
      <ns0:RequestId>1407808787722531</ns0:RequestId>
      </ns0:Error>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ojoshi Omkar Vinit Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: