From 578427307e899ca6cfe88d42b52f1b9991f7feec Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 13 Mar 2018 13:02:22 +0100 Subject: [PATCH] TT#27653 Strip trailing trash from uuid This is more like a hack working around the unknown root cause of why the storage driver is returning trailing garbage for some of the entries of the key column. It doesn't happen on the mysql client, so maybe lua related? Change-Id: I4a5d0b27f0c6dbf9d220e86f1ab6d9e929ad2d89 --- ...ipwise_archive.lib-fix-uuid-trailing-garbage.patch | 11 +++++++++++ debian/patches/series | 1 + 2 files changed, 12 insertions(+) create mode 100644 debian/patches/0007-TT-27653-mod_mam-sipwise_archive.lib-fix-uuid-trailing-garbage.patch diff --git a/debian/patches/0007-TT-27653-mod_mam-sipwise_archive.lib-fix-uuid-trailing-garbage.patch b/debian/patches/0007-TT-27653-mod_mam-sipwise_archive.lib-fix-uuid-trailing-garbage.patch new file mode 100644 index 0000000..637ed93 --- /dev/null +++ b/debian/patches/0007-TT-27653-mod_mam-sipwise_archive.lib-fix-uuid-trailing-garbage.patch @@ -0,0 +1,11 @@ +--- a/plugins/mod_mam/sipwise_archive.lib.lua ++++ b/plugins/mod_mam/sipwise_archive.lib.lua +@@ -56,7 +56,7 @@ + res = engine:select(query, unpack(_params)); + local out = {}; + for row in res do +- table.insert(out, {row[1], row[2], row[3], row[4]}); ++ table.insert(out, {string.sub(row[1], 0, 36), row[2], row[3], row[4]}); + end + return out; + end diff --git a/debian/patches/series b/debian/patches/series index dba2c33..81062ec 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ mod_auth_sql.path 0004-TT-9311-mod_mam-sipwise_archive.lib-full-username.patch 0005-TT-9317-mod_mam-don-t-store-bodyless-chat-messages.patch 0006-TT-9314-mod_mam-sipwise_archive.lib-support-emojis.patch +0007-TT-27653-mod_mam-sipwise_archive.lib-fix-uuid-trailing-garbage.patch