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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 27 08:25:11 CEST 2022


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

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
Created attachment 136566
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136566&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

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


More information about the Koha-bugs mailing list