Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not assume Owner ID comes first in XML for S3 #103

Merged
merged 1 commit into from
Apr 4, 2021

Conversation

timuralp
Copy link
Contributor

@timuralp timuralp commented Apr 4, 2021

Currently, jclouds assumes that the ListBuckets response follows a
specific order: the tag, followed by the tag. Within
the tag, jclouds further assumes that the must occur before
the tag. If the XML body does not adhere to this order,
the parser throws a NullPointerException.

DigitalOcean spaces does not adhere to this order and returns the
tag before the tag. The patch changes the parser to
not depend on the order of the tags.

Currently, jclouds assumes that the ListBuckets response follows a
specific order: the <Owner> tag, followed by the <Buckets> tag. Within
the <Owner> tag, jclouds further assumes that the <ID> must occur before
the <DisplayName> tag. If the XML body does not adhere to this order,
the parser throws a NullPointerException.

DigitalOcean spaces does not adhere to this order and returns the
<DisplayName> tag before the <ID> tag. The patch changes the parser to
not depend on the order of the tags.
@gaul gaul merged commit 04feb8f into apache:master Apr 4, 2021
@gaul
Copy link
Member

gaul commented Apr 4, 2021

Thank you for your contribution @timuralp!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants