[Koha-bugs] [Bug 28489] CGI::Session is incorrectly serialized to DB in production env / when strict_sql_modes = 0

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 11 16:05:07 CEST 2021


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121831|0                           |1
        is obsolete|                            |
 Attachment #121832|0                           |1
        is obsolete|                            |
 Attachment #121833|0                           |1
        is obsolete|                            |
 Attachment #121834|0                           |1
        is obsolete|                            |
 Attachment #121835|0                           |1
        is obsolete|                            |

--- Comment #76 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 121848
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121848&action=edit
Bug 28489: Modify sessions.a_session from longtext to longblob

This column contains serialized data, it should be a blob.
And it fixes encoding issues.

Test plan:
1. Apply patch and run updatedatabase
2. In $KOHA_CONF make sure that you have
   <strict_sql_modes>0</strict_sql_modes>
3. Create 2 libraries:
  a. TESTÄ/Testä
  b. TEST✓/Test✓
4. Go to the staff interface, change your library to Testä, then
   navigate to a few other pages, make sure there is no encoding problem
   with the library name in the top right corner
5. Do the same with Test✓

Signed-off-by: Petro Vashchuk <stalkernoid at gmail.com>
Signed-off-by: Andrew Nugged <nugged at gmail.com>

Signed-off-by: David Cook <dcook at prosentient.com.au>

Signed-off-by: Nick Clemens <nick at bywatersolutions.com>

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


More information about the Koha-bugs mailing list