--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/CAKL84%3DkxpMFXf%3D3Vq-7NdxpEhj8YuPiJji58FMPFkbJKPUXc2g%40mail.gmail.com.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/CAJEDiB5or8S8ASBdAGLkkJskDF0bRQb1JcfjiCPqYWi3NKw49g%40mail.gmail.com.
Disclaimer - This e-mail is subject to UWC policies and e-mail disclaimer published on our website at: https://www.uwc.ac.za/disclaimer
MySQL sometimes stored serialized data in longtext or mediumtext instead of blob.
When migrated, MariaDB 11 defaults to utf8mb4 text encoding — which can reinterpret some byte sequences as invalid UTF-8 and truncate or pad them.
Check this:
SHOW COLUMNS FROM content_resource LIKE 'xml';
or whatever your serialized column is called.
If you see:
Type: longtext Collation: utf8mb4_general_ci
then Sakai thinks it’s reading a binary blob, but MariaDB is feeding it UTF-8 text.
That will destroy binary serialization.
✅ Fix:
Convert the column explicitly back to binary:
ALTER TABLE content_resource MODIFY xml LONGBLOB;
If the migration was done like:
mysqldump --default-character-set=utf8 > dump.sql mysql < dump.sql
then binary content in TEXT columns was re-encoded as UTF-8 text, corrupting the byte stream (e.g., replacing 0x00 or 0xC0 bytes).
✅ Fix:
Re-dump using:
mysqldump --hex-blob --routines --triggers --events
That keeps binary fields intact and hex-encoded.