Boost C++ Libraries: Ticket #5259: embedded nulls not processed parsed correctly from xml https://svn.boost.org/trac10/ticket/5259 <p> Embedded null in any value field of an xml file will result in a truncated string in the property_tree. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5259 Trac 1.4.3 Shawn Tsai <sstsai@…> Thu, 03 Mar 2011 18:31:21 GMT attachment set https://svn.boost.org/trac10/ticket/5259 https://svn.boost.org/trac10/ticket/5259 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.zip</span> </li> </ul> <p> a test file along with a test function and a patch file </p> Ticket Sebastian Redl Mon, 16 May 2011 21:34:18 GMT <link>https://svn.boost.org/trac10/ticket/5259#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5259#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/72001" title="Allow nuls in PTree XML. See bug 5259.">[72001]</a>) Allow nuls in PTree XML. See bug 5259. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Fri, 13 Jan 2012 12:20:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5259#comment:2 https://svn.boost.org/trac10/ticket/5259#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/76447" title="Merge [72000],[72001],[72003], [74691], [75587], [75589], [75590], and ...">[76447]</a>) Merge <a class="changeset" href="https://svn.boost.org/trac10/changeset/72000" title="Make PTree XML writer escape attribute values.">[72000]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/72001" title="Allow nuls in PTree XML. See bug 5259.">[72001]</a>,<a class="changeset" href="https://svn.boost.org/trac10/changeset/72003" title="Try to work around MSVC name lookup bug. See bug 5281.">[72003]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/74691" title="Use boost::swap for swapping PTree's data member. Makes it possible to ...">[74691]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/75587" title="Give string_path an accessor for the separator.">[75587]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/75589" title="Make ptree_bad_data::data() and ptree_bad_path::path() const. See bug ...">[75589]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/75590" title="Suppress the MSVC insecure warning when compiling tests. Make ...">[75590]</a>, and <a class="changeset" href="https://svn.boost.org/trac10/changeset/75593" title="Improve pair member bug workaround: should now hopefully work with ...">[75593]</a> from trunk. Fixes bug 4840. Fixes bug 5259. Fixes bug 5281, I think. Fixes bug 5944. Fixes bug 5757. Fixes bug 5710. Fixes bug 5307, I think. </p> Ticket arkadiy_s@… Fri, 21 Sep 2012 12:47:11 GMT <link>https://svn.boost.org/trac10/ticket/5259#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5259#comment:3</guid> <description> <p> It is supposed that Ptree have constructor from std::basic_string (see property_tree/detail/xml_parser_read_rapidxml.hpp line 77), but it actually doesn't. We don't use boost::property_tree::ptree, we use our implementation of pree. BTW user can use boost::property_tree::basic_ptree from different types. </p> <p> Please revert this fix! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 21 Sep 2012 12:48:13 GMT</pubDate> <title>status changed; resolution deleted https://svn.boost.org/trac10/ticket/5259#comment:4 https://svn.boost.org/trac10/ticket/5259#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> </ul> Ticket Sebastian Redl Fri, 14 Feb 2014 14:52:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5259#comment:5 https://svn.boost.org/trac10/ticket/5259#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> All the serializers only work with PTrees whose data type is std::basic_string. Anything different is just an accident. </p> <p> This will be clarified with the doc update, and possibly changed eventually. But I have to figure out a good way of doing so. </p> Ticket