[Koha-bugs] [Bug 31050] Standardize session setup

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 22 10:23:03 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31050

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #136566|0                           |1
        is obsolete|                            |

--- Comment #4 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 138003
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=138003&action=edit
Bug 31050: C4::Context->setup_session() standardizes user session setup

Test plan:
0. Apply patch and koha-plack --restart kohadev
1. Log into http://localhost:8081/cgi-bin/koha/mainpage.pl using "koha" user
2. Note the login is successful

3. koha-mysql kohadev
3a. select * from sessions;
Session in MySQL sets parameters like surname, flags, interface, ip, lasttime,
etc
3b. select * from systempreferences where variable = 'Version';
3c. update systempreferences set value = '<version which is 1 number less at
the end>' where variable = 'Version';

4. koha-plack --restart kohadev
5. echo 'flush_all' | nc -q 1 memcached 11211

6. Visit http://localhost:8081/ and do the upgrade
6b. Note that the authentication and upgrade works without a problem

7. curl http://localhost:8081/cgi-bin/koha/svc/authentication -d 'userid=<koha
user>&password=<koha password>'

8. koha-mysql kohadev
8a. select * from sessions;
Session in MySQL sets parameters like surname, flags, interface, ip, lasttime,
etc

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list