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

list_objects expects GetObjectAcl permission #72

Closed
adbl opened this issue Sep 9, 2015 · 4 comments
Closed

list_objects expects GetObjectAcl permission #72

adbl opened this issue Sep 9, 2015 · 4 comments
Labels

Comments

@adbl
Copy link

adbl commented Sep 9, 2015

Unless s3:GetObjectAcl action is allowed, the Content entries of the response xml will not contain this part, which seems to be expected by the parsing code:

<Owner><ID>...</ID><DisplayName>...</DisplayName></Owner>

leads to this crash:

** (Protocol.UndefinedError) protocol Enumerable not implemented for nil
    (elixir) lib/enum.ex:1: Enumerable.impl_for!/1
    (elixir) lib/enum.ex:112: Enumerable.reduce/3
    (elixir) lib/stream.ex:695: Stream.do_enum_transform/8
    (elixir) lib/stream.ex:647: Stream.do_transform/7
             lib/sweet_xml.ex:484: anonymous fn/4 in SweetXml.continuation_opts/2
             xmerl_scan.erl:565: :xmerl_scan.scan_document/2
             xmerl_scan.erl:288: :xmerl_scan.string/2
             lib/sweet_xml.ex:180: SweetXml.parse/2
@benwilson512
Copy link
Contributor

Good catch, should have a fix up soon.

@benwilson512
Copy link
Contributor

I have a PR up on SweetXml here: kbrw/sweet_xml#10 that should fix this issue.

@JustMikey
Copy link

The PR has been merged. Has the issue been solved?

@benwilson512
Copy link
Contributor

It should be yup.

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

No branches or pull requests

3 participants