View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004105 | SOGo | Backend General | public | 2017-03-25 09:31 | 2017-03-29 14:22 |
Reporter | zhb | Assigned To | ludovic | ||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 3.2.8 | ||||
Summary | 0004105: SOGo cannot create sql table for OCSCacheFolder with MySQL 5.1.73 on CentOS 6. | ||||
Description | Dear developers, I'm running SOGo 3.2.8 (and old releases) on CentOS 6.x with MySQL 5.1.73 (the one shipped by CentOS), it creates other SQL tables, but cannot create SQL table for OCSCacheFolder. Here's the tables created by SOGo automatically: ############ mysql sogo -e "show tables"+------------------------+ This is the original SQL template from SOGo package (/usr/lib64/GNUstep/SOGo/MainUI.SOGo/Resources/OCSCacheFolder-mysql.sql): ###################################-- (C) 2004-2005 SKYRIX Software AG
| ||||
Tags | No tags attached. | ||||
UPDATE: If i create sogo database with default character set (not 'UTF8'), it works. |
|
Not surprising, as a character in UTF-8 is 4 Bytes long, an ISO-8859-1 is 1 Byte per character. |
|
Understood. Please mention this in SOGo installation guide. otherwise others MAY experience same error. |
|
That primary key should be changed. CONSTRAINT @{tableName}_pkey PRIMARY KEY (c_uid(100), c_path(100)) IIRC with that it only uses the first 100 characters out of the c_uid and c_path fields for the key. |
|
Which one is better? Create sql db in latin (by me), or modify SQL table (by SOGo)? |
|
UTF-8 can handle non latin characters way better. |
|
Hi Christian, Any plan to fix it in SOGo? |
|
Nothing can be done in SOGo for this. MySQL 5.1 is ancient stuff now, released 13 years ago. MySQL 5.5 supports much larger keys length. See the documentation about "5.9.1. MySQL complete Unicode compliance" in SOGo docs. |
|
OK, if SOGo team has no plan to "fix" it, i will do some work to handle this in iRedMail installer. Thanks for the update. I think we can close this ticket now. |
|
It's not that we have no plan to fix it - it's that we cannot fix it. We use large identifiers everywhere in SOGo, that would mean we would need to change everything in SOGo. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-03-25 09:31 | zhb | New Issue | |
2017-03-25 09:58 | zhb | Note Added: 0011578 | |
2017-03-27 08:48 | Christian Mack | Note Added: 0011585 | |
2017-03-27 15:02 | zhb | Note Added: 0011592 | |
2017-03-27 16:18 | Christian Mack | Note Added: 0011594 | |
2017-03-27 17:26 | zhb | Note Added: 0011596 | |
2017-03-28 09:03 | Christian Mack | Note Added: 0011602 | |
2017-03-28 14:27 | zhb | Note Added: 0011606 | |
2017-03-29 13:33 | ludovic | Severity | crash => minor |
2017-03-29 13:35 | ludovic | Note Added: 0011615 | |
2017-03-29 14:20 | zhb | Note Added: 0011622 | |
2017-03-29 14:22 | ludovic | Note Added: 0011623 | |
2017-03-29 14:22 | ludovic | Status | new => closed |
2017-03-29 14:22 | ludovic | Assigned To | => ludovic |
2017-03-29 14:22 | ludovic | Resolution | open => no change required |