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
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 312
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18808-1306823709-435.68554-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 551
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18807-1308657706-1948.68554-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 72
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.