Boost C++ Libraries: Ticket #1537: no value given in 'mysql_password =' https://svn.boost.org/trac10/ticket/1537 <p> Hi, </p> <blockquote class="citation"> <p> no value given in 'mysql_password =' </p> </blockquote> <p> When I put this line in a conf file, I get this error. I think it should just accept this as the empty string. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1537 Trac 1.4.3 s.ochsenknecht@… Tue, 10 Nov 2009 09:17:41 GMT attachment set https://svn.boost.org/trac10/ticket/1537 https://svn.boost.org/trac10/ticket/1537 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">ticket1537.patch</span> </li> </ul> <p> possible patch </p> Ticket s.ochsenknecht@… Tue, 10 Nov 2009 09:22:48 GMT cc set https://svn.boost.org/trac10/ticket/1537#comment:1 https://svn.boost.org/trac10/ticket/1537#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">s.ochsenknecht@…</span> added </li> </ul> <p> I attached a patch which allows these empty values in config files. I simply removed the exception and enhanced one test case. </p> <p> But, I can not survey the impact and possible side effects. And do we really want this behavior? At least the tests seam to work fine. </p> <p> Please comment. </p> <ul><li>Sascha </li></ul> Ticket Sascha Ochsenknecht Fri, 20 Nov 2009 16:52:11 GMT <link>https://svn.boost.org/trac10/ticket/1537#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1537#comment:2</guid> <description> <p> I applied the patch. </p> <p> With one small modification. Empty values are ignored and nothing is stored. I think it makes sense since an empty string can not be converted to every possible value type, e.g. integer options. </p> <p> Cheers </p> <ul><li>Sascha </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Sascha Ochsenknecht</dc:creator> <pubDate>Fri, 20 Nov 2009 16:53:11 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1537#comment:3 https://svn.boost.org/trac10/ticket/1537#comment:3 <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/57819" title="allow empty values in config file, Fixes #1537">[57819]</a>) allow empty values in config file, Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1537" title="#1537: Bugs: no value given in 'mysql_password =' (closed: fixed)">#1537</a> </p> Ticket olafvdspek@… Fri, 20 Nov 2009 16:57:12 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/1537#comment:4 https://svn.boost.org/trac10/ticket/1537#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> <p> I don't think that's a good idea. There's a difference between an empty value and no value. </p> Ticket Vladimir Prus Fri, 20 Nov 2009 17:47:16 GMT <link>https://svn.boost.org/trac10/ticket/1537#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1537#comment:5</guid> <description> <p> I'd agree. Ignoring bits of config file seems a potentially confusing behaviour. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sascha Ochsenknecht</dc:creator> <pubDate>Fri, 20 Nov 2009 18:10:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1537#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1537#comment:6</guid> <description> <p> Ok, another proposal would be to store an empty value for string type values (also for collection of strings) and throwing a validation error for e.g. integer types: "invalid option value <em>" </em></p> <p> This is probably better than storing a default constructed value, which could be undefined. Or in other words, what is an empty integer? undefined or invalid (I would prefer invalid -&gt; exception)? </p> <p> Please comment. </p> </description> <category>Ticket</category> </item> <item> <author>olafvdspek@…</author> <pubDate>Fri, 20 Nov 2009 18:22:46 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1537#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1537#comment:7</guid> <description> <p> Invalid </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sascha Ochsenknecht</dc:creator> <pubDate>Sat, 21 Nov 2009 07:59:43 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1537#comment:8 https://svn.boost.org/trac10/ticket/1537#comment:8 <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">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/57829" title="store empty values from config file, Fixes #1537">[57829]</a>) store empty values from config file, Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1537" title="#1537: Bugs: no value given in 'mysql_password =' (closed: fixed)">#1537</a> </p> Ticket