Read a session in remote session backend causes an update request
When reading a session stored in a remote session backend - for example a Apache::Session::Browseable::MySQL backend - a SELECT request is sent, then an UPDATE request is sent, with the same datas. This UPDATE request should not happen.
To reproduce the bug, you can simply install Apache::Session::Browseable::MySQL, create a MySQL database called "lemonldap" with a login/pwd "lemonldap"/"password" and a table session according to lemonldap-ng-common/tools/apache-session-mysql.sql, then run this one-liner :
perl -e 'use Lemonldap::NG::Common::Session; my $apacheSession = Lemonldap::NG::Common::Session->new(storageModule => "Apache::Session::Browseable::MySQL", storageModuleOptions => { DataSource => "DBI:mysql:lemonldap:127.0.0.1", Password => "password", UserName => "lemonldap", TableName => "sessions" }, id => "96210980e2892523cb363faf960e04f9", kind => "SSO"); use Data::Dumper; print Dumper $apacheSession->data'