Skip Menu |
 

This queue is for tickets about the Apache-Session CPAN distribution.

Report information
The Basics
Id: 50896
Status: resolved
Priority: 0/
Queue: Apache-Session

People
Owner: Nobody in particular
Requestors: grinnz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.83
Fixed in: 1.91



Subject: 6-bit values cause session to fail
Download (untitled) / with headers
text/plain 919b
When I assign a numerical value between 0 and 127 inclusive to an element of the hash I tie to the session (using MySQL), the text field in the database loses values (always loses _session_id for me). To reproduce: use Apache::Session::MySQL; # get $sessionid from cookie $dbh = # handle to a MySQL database my %session; tie %session, 'Apache::Session::MySQL', $session_id, { Handle => $dbh, LockHandle => $dbh, }; unless (exists $session{'_session_id'}) { die $session_id; }; $session{'test'} = 12; # store $session{'_session_id'} in cookie untie %session; Loading the page once results in the text field missing a lot of data, the second run dies because _session_id is not present.
Download (untitled) / with headers
text/plain 1.1k
On Wed Oct 28 00:56:38 2009, Grinnz wrote: Show quoted text
> When I assign a numerical value between 0 and 127 inclusive to an > element of the hash I tie to the session (using MySQL), the text field > in the database loses values (always loses _session_id for me). > > To reproduce: > > use Apache::Session::MySQL; > # get $sessionid from cookie > $dbh = # handle to a MySQL database > my %session; > tie %session, 'Apache::Session::MySQL', $session_id, { > Handle => $dbh, > LockHandle => $dbh, > }; > unless (exists $session{'_session_id'}) { > die $session_id; > }; > $session{'test'} = 12; > # store $session{'_session_id'} in cookie > untie %session; > > Loading the page once results in the text field missing a lot of data, > the second run dies because _session_id is not present.
A test was added to Apache::Session 1.91 to check this. It runs only when Test::Database is configured. On my smokers this test did not detect any errors. -- Alexandr Ciornii, http://chorny.net


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.