Hello, I'm having some trouble working on a webapp managing the imap tree on Dovecot. The same doesn't happen on other imap servers (e.g. Cyrus). Looks like if I receive shared folders from another user, and try to rename a folder in it, the rename command returns "ok", then if you list the new folder name, it isn't there. Looks like you've lost all the original folder because if you try listing the parent folder, you don't have nor the original nor the new name, even trying to logout/disconnect and reconnect/login. Luckily nothing is lost actually, if you try to create a new folder on the parent folder, and then list the parent folder, you get both the newly created one and the renamed one also appears magically! Here is the IMAP trace to reproduce: *** ON ACCOUN RECEIVING SHARED FOLDER *** PREPARE A FOLDER IN SHARED TREE WITH JUST ONE CHILD "aaaa" *** THEN RENAME aaaa FOLDER TO bbbb *** AFTER "OK Rename" FOLDER IS NOT PRESENT IN LIST A3 LIST "" Shared/gabriele.prova@sonicle.com/Junk/aaaa
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Junk/aaaa A3 OK List completed. A4 RENAME Shared/gabriele.prova@sonicle.com/Junk/aaaa Shared/gabriele.prova@sonicle.com/Junk/bbbb A4 OK Rename completed. A5 LIST "" Shared/gabriele.prova@sonicle.com/Junk/bbbb A5 OK List completed. *** bbbb IS NOT LISTED AFTER "OK Rename"! *** LOGOUT/DISCONNECT - CONNECT/LOGIN AND LIST BRANCH *** A66 LIST "" "Shared/gabriele.prova@sonicle.com/%"
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Sent
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Drafts
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Trash
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Spam
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Junk
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/INBOX A66 OK List completed. *** Junk HAS NO CHILDREN! *** CREATE A NEW FOLDER IN Junk *** A68 CREATE Shared/gabriele.prova@sonicle.com/Junk/zzzz A68 OK Create completed. A69 LIST "" Shared/gabriele.prova@sonicle.com/Junk/zzzz
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Junk/zzzz A69 OK List completed. *** "zzzz" IS LISTED, SO NOW LIST PARENT BRANCH *** A26 LIST "" "Shared/gabriele.prova@sonicle.com/%"
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Sent
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Drafts
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Trash
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Spam
- LIST (\HasChildren) "/" Shared/gabriele.prova@sonicle.com/Junk
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/INBOX A26 OK List completed. *** Junk NOW HAS CHILDREN, SO NOW LIST Junk BRANCH *** A29 LIST "" "Shared/gabriele.prova@sonicle.com/Junk/%"
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Junk/bbbb
- LIST (\HasNoChildren) "/" Shared/gabriele.prova@sonicle.com/Junk/zzzz A29 OK List completed. *** bbbb MAGICALLY APPEARS! NOTHING IS LOST. Is there anything I can do to force "bbbb" to reappear without having to create a new folder? Any idea? Thanks in advance, Gabriele
Sonicle S.r.l. : http://www.sonicle.com Music: http://www.gabrielebulfon.com Quantum Mechanics : http://www.cdbaby.com/cd/gabrielebulfon
On 06/01/2017 10:25 AM, Gabriele Bulfon wrote:
Is there anything I can do to force "bbbb" to reappear without having to create a new folder? Any idea?
We may need doveconf -n
output and information about ACL of the
removed folder and all its parents. Also did you try to use LIST with *
instead of %?
-- Aleksander 'A.L.E.C' Machniak Kolab Groupware Developer [http://kolab.org] Roundcube Webmail Developer [http://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
Hi, here I attach the output of "dovecot -n". The shared folders are entire accounts shared recursively, with full control (akxeilprwts). Please consider the main point of confusion: normal folders will list as soon as they're renamed, with %, while shared folders (and their subfolders) get renamed, but don't get listed until something changes in the parent (e.g. new folder, by the owner or the receiving account). Just manually typing the protocol commands will reproduce. Hope you find something in the attachment configuration. Gabriele
Sonicle S.r.l. : http://www.sonicle.com Music: http://www.gabrielebulfon.com Quantum Mechanics : http://www.cdbaby.com/cd/gabrielebulfon
Da: A.L.E.C
A: dovecot@dovecot.org
Data: 1 giugno 2017 19.37.48 CEST
Oggetto: Re: Possible RENAME bug
On 06/01/2017 10:25 AM, Gabriele Bulfon wrote:
Is there anything I can do to force "bbbb" to reappear without having to create a new folder?
Any idea?
We may need doveconf -n
output and information about ACL of the
removed folder and all its parents. Also did you try to use LIST with *
instead of %?
Aleksander 'A.L.E.C' Machniak Kolab Groupware Developer [http://kolab.org] Roundcube Webmail Developer [http://roundcube.net]
PGP: 19359DC1 # Blog: https://kolabian.wordpress.com
participants (2)
-
A.L.E.C
-
Gabriele Bulfon