Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Session CPAN distribution.

Report information
The Basics
Id: 23801
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Session

People
Owner: Nobody in particular
Requestors: dan.horne [...] redbone.co.nz
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.02
Fixed in: (no value)



Subject: Test 6 fails expirycheck
./Build test t/01_basic............ok t/02_cookie...........ok t/03_nocookie.........ok t/04_cgisimple........skipped all skipped: CGI::Simple required for this test t/05_sid..............ok t/06_expiry...........NOK 4/16 # Failed test 'session cookie expiry set' # at t/06_expiry.t line 21. # 'Set-Cookie: CGISESSID=a7104754ef9fac38ae6217fec485b51a; path=/; expires=+3600s # Date: Tue, 05 Dec 2006 11:24:27 GMT # Content-Type: text/html; charset=ISO-8859-1 # # session expiry: (3600) # ' # doesn't match '(?-xism:expires=\w{3}, )' t/06_expiry...........NOK 8/16 # Failed test 'session cookie expiry set' # at t/06_expiry.t line 40. # 'Set-Cookie: CGISESSID=a7104754ef9fac38ae6217fec485b51a; path=/; expires=+3600s # Date: Tue, 05 Dec 2006 11:24:27 GMT # Content-Type: text/html; charset=ISO-8859-1 # # session expiry: (3600) # ' # doesn't match '(?-xism:expires=\w{3}, )' t/06_expiry...........NOK 14/16 # Failed test 'session cookie expiry set' # at t/06_expiry.t line 64. # 'Set-Cookie: CGISESSID=132671891306d31ba0aafff9bad59002; path=/; expires=-31536000s # Date: Tue, 05 Dec 2006 11:24:27 GMT # Content-Type: text/html; charset=ISO-8859-1 # # session expiry: (-31536000) # ' # doesn't match '(?-xism:expires=\w{3}, )' Use of uninitialized value in subtraction (-) at t/06_expiry.t line 69. t/06_expiry...........NOK 15/16 # Failed test 'Expiry should not change' # at t/06_expiry.t line 69. # got: undef # expected: '-1' t/06_expiry...........ok 16/16# Looks like you failed 4 tests of 16. t/06_expiry...........dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 4, 8, 14-15 Failed 4/16 tests, 75.00% okay t/07_defaults.........ok t/08_notcgipm.........ok t/09_options..........ok t/10_sessioncookie....ok t/11_sessiondelete....ok 2/20 skipped: various reasons t/12_badconfig........ok t/98_pod..............skipped all skipped: Test::Pod 1.00 required for testing POD t/99_pod_coverage.....skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/06_expiry.t 4 1024 16 4 4 8 14-15 3 tests and 2 subtests skipped. Failed 1/14 test scripts. 4/105 subtests failed. Files=14, Tests=105, 4 wallclock secs ( 0.81 cusr + 0.82 csys = 1.63 CPU) Failed 1/14 test programs. 4/105 subtests failed. This is on CentOS v4: uname -a Linux rdblin03 2.6.9-42.0.3.EL #1 Fri Oct 6 05:59:54 CDT 2006 i686 i686 i386 GNU/Linux The weird thing is I installed on another server today with exactly the same version of CentOS and it worked. The only difference I can determine is the version of Perl (both compiled from source). The successful server is 5.8.7, the unsuccessful is 5.8.8
From: dan.horne [...] redbone.co.nz
I think this is due to a regex bug with qr - see https://rt.perl.org/rt3/Ticket/Display.html?id=39185
From: olaf [...] wundersolutions.com
I'm seeing exactly the same problems: uname -a Linux holmes 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686 i686 i386 GNU/Linux perl -v This is perl, v5.8.5 built for i386-linux-thread-multi perl is (I believe) installed via the standard available package.
This is actually due to a bug in CGI.pm. I can't remember when the bug was introduced, but according to the changelog it was fixed in 3.26. 6. Fixed bug in seconds calculation in CGI::Util::expire_calc. Cheers, Cees