Scalable OGo (SOGo)

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004308SOGoBackend Mailpublic2017-10-06 11:502017-10-11 09:36
ReporterAndrey Cherepanov 
Assigned Tofrancis 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformServerOSALT LinuxOS Version8
Product Version3.2.10 
Target VersionFixed in Version3.2.11 
Summary0004308: Unable to create mail folder "???"
DescriptionI configure Dovecot to work with UTF-8 in mail_location.
I set
SOGoSieveFolderEncoding = "UTF-8";
in /etc/sogo/sogo.conf

But I have problems with create and view mail folder with Cyrillic letters with third letter '?' in name. Any other Cyrillic letter as third letter works without problem.

Try to create mail folder: An error occured while creating the mailbox "???".
Created in Thunderbird folder "???" show in Web UI as "???"
Steps To ReproduceIn Mail view try to create folder with name "???".

Dialog is appeared: An error occured while creating the mailbox "???".
TagsNo tags attached.
Attached Filespatch file icon sope-correct-mUTF7-last-digit.patch [^] (3,781 bytes) 2017-10-10 07:29 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to 0002318closed Problem with cyrillic imap folders 
has duplicate 0004299resolvedfrancis "POST /SOGo/so/example@example.eu/Mail/0/folderINBOX/createFolder HTTP/1.1" 500 74/25 0.271 - - 0 

-  Notes
(0012356)
Andrey Cherepanov (reporter)
2017-10-06 11:52

echo "0L/QsNC/Cg==" | base64 -d
(0012357)
Ivan Zakharyaschev (reporter)
2017-10-06 13:50

Third letters which cause this problem:

U+043F CYRILLIC SMALL LETTER PE
(UTF-8: 0xD0 0xBF)

U+047F CYRILLIC SMALL LETTER OT
(UTF-8: 0xD1 0xBF)

U+04BF CYRILLIC SMALL LETTER ABKHASIAN CHE WITH DESCENDER
(UTF-8: 0xD2 0xBF)

If such a folder (three Cyrillic letters, the third one a "special" one) is created in the filesystem directly, it is displayed by SOGo with the third letter replaced with:

U+04FF CYRILLIC SMALL LETTER HA WITH STROKE
(UTF-8: 0xD3 0xBF)
(0012358)
Ivan Zakharyaschev (reporter)
2017-10-06 13:52

This could also be observed when a Russian folder "Sent" ("????????????") was created in the filesystem directly (after an import). Then its 3rd letter was exactly a bad one, so it was displayed incorrectly in SOGo.
(0012359)
Ivan Zakharyaschev (reporter)
2017-10-06 13:59

Either 0xbf or the last 2 bits set (3 == 11B) in UCS seem to be the trigger.
(0012360)
Ivan Zakharyaschev (reporter)
2017-10-06 14:35

Every third Cyrillic letter is affected: I've just created (in the filesystem) a folder with a very long name consisting solely of Cyrillic small PE, and this is how it is shown in SOGo web-interface:

__*__*__*__*__*__*__*__*__...

* denotes the bad sign here, _ -- the good letter.

I wonder whether other interfaces have this problem. (What other interaces does SOGo server except for the web-interface?.. Well, probably, only ActiveSync. IMAP is done directly through dovecot, and dovecot treats them fine, was confirmed by an experiment)
(0012364)
Ivan Zakharyaschev (reporter)
2017-10-10 07:33

The patch has been submitted as a pull request at github.

The same problem must also be a part of https://sogo.nu/bugs/view.php?id=2318 [^] .

Perhaps, it was left unnoticed because in practice it appears only in the rare case when there is a non-Latin two-byte Unicode character which has all last 6 bits "1" at the third position in a folder name.
User avatar (0012365)
francis (administrator)
2017-10-10 08:35

See https://github.com/inverse-inc/sope/commit/45db3976d3f4790337e3e8bfb149f053e88174f9 [^]

- Issue History
Date Modified Username Field Change
2017-10-06 11:50 Andrey Cherepanov New Issue
2017-10-06 11:52 Andrey Cherepanov Note Added: 0012356
2017-10-06 13:50 Ivan Zakharyaschev Note Added: 0012357
2017-10-06 13:52 Ivan Zakharyaschev Note Added: 0012358
2017-10-06 13:59 Ivan Zakharyaschev Note Added: 0012359
2017-10-06 14:35 Ivan Zakharyaschev Note Added: 0012360
2017-10-10 07:29 Ivan Zakharyaschev File Added: sope-correct-mUTF7-last-digit.patch
2017-10-10 07:33 Ivan Zakharyaschev Note Added: 0012364
2017-10-10 08:35 francis Note Added: 0012365
2017-10-10 08:35 francis Status new => resolved
2017-10-10 08:35 francis Fixed in Version => 3.2.11
2017-10-10 08:35 francis Resolution open => fixed
2017-10-10 08:35 francis Assigned To => francis
2017-10-10 08:47 francis Relationship added related to 0002318
2017-10-11 09:36 francis Relationship added has duplicate 0004299


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker