Skip Menu |

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

Report information
The Basics
Id: 69984
Status: resolved
Worked: 30 min
Priority: 0/
Queue: Config-Auto

People
Owner: BINGOS [...] cpan.org
Requestors: tom [...] claimlynx.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.36
Fixed in: 0.30



Subject: Array handling regression when using equals format
There appears to be a regression in the newer versions of Config::Auto related to the handling of multiple values. We are seeing this behavior on multiple versions of FreeBSD, including 8.2-RELEASE and 9.0-CURRENT, multiple versions of Perl, 5.14.1, 5.10.1, and 5.8.9, and multiple versions of Config::Auto. Versions 0.34 and 0.36 appear to be broken, but we have found that 0.30 works. In all cases, Perl and Config::Auto are pulled in from FreeBSD ports. To demonstrate this behavior, I have used the following config file and perl script. ==Config File== # A list of defined backup jobs backup.jobs.list = production development infrastructure jaguararray foo = bar == End Config== ==Test Script== #!/usr/local/bin/perl use strict; use warnings; use Config::Auto; use Data::Dumper; # Source the config file. This line must be changed if the config file # is named differently. my $ca = Config::Auto->new( source => "/tmp/test.conf", format => "equal" ); my $config = $ca->parse; print Dumper($config); ==End Script== The following output is produced by running this script on a machine running FreeBSD 8.2-RELEASE, Perl 5.10.1, and Config::Auto 0.30. ==Working Output $VAR1 = { 'backup.jobs.list' => [ 'production', 'development', 'infrastructure', 'jaguararray' ], 'foo' => 'bar' }; ==End Working Output== The following is an example of the incorrect output generated on a different machine running FreeBSD 9.0-CURRENT, Perl 5.12.3, and Config::Auto 0.36. Reverting Config::Auto to 0.30 on this machine yields the above results. ==Broken Output== $VAR1 = { 'foo' => 'bar' }; ==End Broken Output==
From: tom [...] claimlynx.com
Additionally, the installed version of Config::Auto has the following dependencies. Can provide the sub-deps if helpful. Information for p5-Config-Auto-0.30: Depends on: Dependency: perl-threaded-5.12.3 Dependency: p5-YAML-0.72 Dependency: p5-Config-IniFiles-2.68
Hi, This was resolved with version 0.38 Many thanks for reporting the issue.