This project is archived and is in readonly mode.
[PATCH] Fix Hash#from_xml with empty hash (using REXML backend)
-
codebrulee
- Tag changed from patch to 2.3.x, activesupport, from_xml, master, patch
This is a patch against master, but I feel that it should be included in the 2.3.5 release (if at all possible) since it is a regression for 2.3.x.
-
CancelProfileIsBroken
- Tag changed from 2.3.x, activesupport, from_xml, master, patch to 2.3.x, activesupport, bugmash, from_xml, master, patch
-
John Pignata
+1 verified - applies cleanly to master
-
sr.iniv.t
+1 verified on master.
Patch applies cleanly only on master, but fails on 2-3-stable. Will try to upload a patch for 2-3-stable.
-
Elad Meidar
+1 verified on master and 2-3-stable Master patch applies cleanly and tests pass.
i've attached a patch for 2-3-stable. -
CancelProfileIsBroken
- Tag changed from 2.3.x, activesupport, bugmash, from_xml, master, patch to 2.3.x, activesupport, bugmash-review, from_xml, master, patch
-
Rizwan Reza
- Tag changed from 2.3.x, activesupport, bugmash-review, from_xml, master, patch to 2.3.x, activesupport, bugmash, from_xml, master, patch
-
Enrico Bianco
+1 to the 2-3-stable patch.
Applies cleanly and all activesupport tests pass.
-
Neeraj Singh
I would say that fix should be on the conversion side.
ruby-1.8.7-p249 > {}.to_xml => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<hash>\n</hash>\n"The output in the above case should not have \n .
Rather than try to fix it on the parsing side, to_xml should be fixed. Just my thought.
-
Santiago Pastorino
- State changed from new to open
- Tag changed from 2.3.x, activesupport, bugmash, from_xml, master, patch to 23x, activesupport, bugmash, from_xml, master, patch
- Importance changed from to
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
-
joson
A Replica Breitling is a timepiece of high quality and functionality and you will have all the class, prestige and luxury of a wealthy, successful individual. By choosing from our selection of luxury Replica Watches , you can improve your self-esteem and feel confident to enter new circles of business associates and friends. These Rolex Replicas will surely enhance your style and only you will know the watch you wear did not cost you $1,000's of dollars.
