-
Notifications
You must be signed in to change notification settings - Fork 96
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
Whitespace in PUT bucket ACL XML payload causes errors #782
Comments
Note to myself: tried |
Looks like this is how xmerl works. We have to ignore all unexpected
Doc says |
The root cause for #782 was misuse of xmerl_scan:string/2, which doesn't emit spaces, comments between actual xml elements. It leaves them as #xmlText{} and #xmlComment{} - This commit changes to ignore them at walking around parsed dom tree. This diffset also includes a small refactoring that wraps all xmerl_scan:string/2 to one riak_cs_xml funcsion to control its usage. This also adds regression test as simple eunit test case. Conflicts: src/riak_cs_acl_utils.erl src/riak_cs_s3_response.erl
Fixed via #795. Will be included in next version. |
Below is some
ngrep
output that demonstrates a failure (with whitespace) and a success (without whitespace).Also, if
ngrep
doesn't appear to be working on OS X 10.9, go here.With whitespace and indentation:
Without whitespace:
Props to the Cloud Foundry Blobstore Engineering team for helping us track this down:
The text was updated successfully, but these errors were encountered: