Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Session-Store-FastMmap CPAN distribution.

Report information
The Basics
Id: 33667
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Session-Store-FastMmap

People
Owner: Nobody in particular
Requestors: DAMI [...] cpan.org
Cc:
AdminCc:

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



Subject: Session::Store::FastMmap doesn't check the return value for set()
The doc for Cache::FastMmap says : "you cannot store values larger than a page in the cache at all. Attempting to store values larger than a page size will fail (the set () function will return false)." Unfortunately, Session::Store::FastMmap doesn't check the return value. So the session data is silently corrupted, and it's quite hard to debug. I suggest the following patch 74c74,75 < $c->_session_fastmmap_storage->set( $sid, $data ); --- Show quoted text
> $c->_session_fastmmap_storage->set( $sid, $data ) > or Catalyst::Exception->throw("store_session: data too large");
Appled patch as svn revision 7723.