Skip Menu |
 

This queue is for tickets about the Config-IniFiles CPAN distribution.

Report information
The Basics
Id: 68554
Status: resolved
Priority: 0/
Queue: Config-IniFiles

People
Owner: Nobody in particular
Requestors: toby.allsopp [...] navman.co.nz
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.63
Fixed in: (no value)



Subject: Parameters with empty values not written to file
Download (untitled) / with headers
text/plain 312b
If you create a new value where the value is the empty string, that parameter is omitted from the file when writing. The problem is in the call to _OutputParam, where split is called on $val if it is not an array ref. Split on an empty string always returns an empty array, so then _OutputParam writes nothing.
Download (untitled) / with headers
text/plain 551b
Hi Toby, On Mon May 30 21:15:01 2011, tobyallsopp wrote: Show quoted text
> If you create a new value where the value is the empty string, that > parameter is omitted from the file when writing. > > The problem is in the call to _OutputParam, where split is called on > $val if it is not an array ref. Split on an empty string always returns > an empty array, so then _OutputParam writes nothing.
Thanks for your report. I'll investigate that later on. In the meanwhile, you may wish to provide a test case as a t/*.t file and/or a patch. Regards, -- Shlomi Fish
Fixed in release 2.67 . Thanks for the report. Regards, -- Shlomi Fish


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.