This project is archived and is in readonly mode.
to_xml generated <foo type="binary"> tags not accepted by from_xml
Reported by John Franklin | July 28th, 2009 @ 08:06 PM | in 3.0.2
Converting binary data to XML creates ... tags. Sending the same tag back to rails fails to decode the base64 because the from_xml doesn't acknowledge the type="binary" attribute. It expects a type="binaryBase64" attribute, instead.
The attached patch adds support for a type="binary" with an optional encoding="base64". If the encoding attribute is absent, the data is considered unencoded.
Comments and changes to this ticket
-
John Franklin July 28th, 2009 @ 08:09 PM
Stupid lighthouse. Let's try this again:
The tags noted in the bug should be:
... -
John Franklin July 28th, 2009 @ 08:11 PM
Grr... (If only there were a preview button next to the "update ticket" button)
<mydata type="binary" encoding="base64">...</mydata>
-
John Franklin July 28th, 2009 @ 08:24 PM
- Tag changed from binary, from_xml, xml to binary, from_xml, patch, xml
-
CancelProfileIsBroken August 7th, 2009 @ 02:37 PM
- Tag changed from binary, from_xml, patch, xml to binary, bugmash, from_xml, patch, xml
-
Josh Nichols August 9th, 2009 @ 06:59 PM
- Tag changed from binary, bugmash, from_xml, patch, xml to binary, bugmash, from_xml, patch, verified, xml
+1, because without this patch, the attribute gets serialized as 'true'.
Verified the patch applies and works as intended.
-
Rizwan Reza January 20th, 2010 @ 11:38 AM
- State changed from new to verified
- Tag changed from binary, bugmash, from_xml, patch, verified, xml to binary, from_xml, patch, verified, xml
- Milestone cleared.
-
Rizwan Reza March 26th, 2010 @ 08:48 AM
- Assigned user set to José Valim
-
Repository March 26th, 2010 @ 02:52 PM
- State changed from verified to resolved
(from [c7cc9583689d63d342983d739ccf5c4e94233a48]) Add support for a type=binary with an optional encoding=base64. If the encoding attribute is absent, the data is considered unencoded. [#2966 state:resolved] http://github.com/rails/rails/commit/c7cc9583689d63d342983d739ccf5c...
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 2966 to_xml generated <foo type="binary"> tags not accepted by from_xml (from [c7cc9583689d63d342983d739ccf5c4e94233a48]) Add sup...