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

Bugfix/gh782 acl xml format #793

Closed
wants to merge 4 commits into from
Closed

Conversation

kuenishi
Copy link
Contributor

@kuenishi kuenishi commented Feb 5, 2014

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 pull request 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.

@kuenishi kuenishi added this to the 1.5.0 milestone Feb 5, 2014
@kuenishi
Copy link
Contributor Author

kuenishi commented Feb 5, 2014

Or maybe I'd open this against 1.4 branch?

@shino
Copy link
Contributor

shino commented Feb 5, 2014

Agree. > 1.4

@reiddraper
Copy link
Contributor

Yes, let's try and get this into 1.4.5.

@reiddraper reiddraper modified the milestones: 1.4.5, 1.5.0 Feb 5, 2014
%% these types should be defined in xmerl.hrl or xmerl.erl
%% for now they're defined here for convenience.
-type xmlElement() :: #xmlElement{}.
-type xmlText() :: #xmlText{}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xmlElement and xmlText should be exported types (thanks dialyzer)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixed in #795

@kuenishi
Copy link
Contributor Author

kuenishi commented Feb 6, 2014

Reopened an issue against release/1.4 => #795.

@kuenishi kuenishi closed this Feb 6, 2014
@kuenishi kuenishi deleted the bugfix/gh782-acl-xml-format branch February 6, 2014 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants