Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't create folder in public namespace root #3910

Closed
rcubetrac opened this issue Sep 2, 2012 · 7 comments
Closed

can't create folder in public namespace root #3910

rcubetrac opened this issue Sep 2, 2012 · 7 comments

Comments

@rcubetrac
Copy link

Reported by mxm on 2 Sep 2012 10:52 UTC as Trac ticket #1488665

I'm faced with described in subject problem.
Using Roundcube 0.8.1 and Dovecot 2.1.8 under FreeBSD 8.3-STABLE.
When I tried to create new folder in public namespace root nothing happend. This action accompanied with suspicious records in errors log:

[09:37:13 UTC](02-Sep-2012) PHP Warning:  in_array() expects parameter 2 to be array, null given in /usr/local/www/roundcube/program/steps/settings/folders.inc on line 51

This is possible to do, for example, using Seamonkey mail client but not Roundcube. But if I trying to do the same in already created folder Roundcube does it as must be.
Bug?

Keywords: folder public dovecot
Migrated-From: http://trac.roundcube.net/ticket/1488665

@rcubetrac
Copy link
Author

Comment by @alecpl on 2 Sep 2012 17:30 UTC

The code in line 51 is used only when subscribing a folder. So, this is not relevant. Enable imap_debug in Roundcube and provide the log.

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 2 Sep 2012 17:30 UTC

later => 0.9-beta

@rcubetrac
Copy link
Author

Comment by mxm on 2 Sep 2012 18:33 UTC

Here is IMAP log when I tried to create folder "123" in public namespace root

[21:32:07 +0300](02-Sep-2012): [S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN](EEAE]) Dovecot ready!
[21:32:07 +0300](02-Sep-2012): [C: A0001 ID ("name" "Roundcube Webmail" "version" "0.8.1" "php" "5.4.6" "os" "FreeBSD" "command" "/")
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * ID NIL
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: A0001 OK ID completed.
[02-Sep-2012 21:32:07 +0300](EEAE]): [C: A0002 AUTHENTICATE CRAM-MD5
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: + PDYzNjIwMzI1NzIzNjU3MDkuMTM0NjYxMDcyN0BiZXRhLnBlZWsubG9jYWw+
[02-Sep-2012 21:32:07 +0300](EEAE]): [C: bXhtQHBlZWsucnUgNGU2ZGQ0NDgxNjFlYzJlZWM2MDI5YWQxNzZhOGUwYmY=
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE ACL RIGHTS=texk](EEAE]) Logged in
[21:32:07 +0300](02-Sep-2012): [C: A0003 LIST "" public
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\Noselect \HasChildren) "." "public"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: A0003 OK List completed.
[02-Sep-2012 21:32:07 +0300](EEAE]): [C: A0004 LIST "" "*"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "Sent"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "Drafts"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasChildren) "." "INBOX"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasChildren) "." "INBOX.suppliers"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.bulat"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.integral"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.delacamp"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.china"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.vtt"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.katun"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.teko"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.suppliers.brother"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.pricelists"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.telecom"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.carcade"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "INBOX.fuel"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "Trash"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "Junk"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "public.news"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasChildren) "." "public.mailing"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "public.mailing.brother"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "public.mailing.ricoh"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "public.mailing.oki"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "public.mailing.xerox"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * LIST (\HasNoChildren) "." "public.mailing.suppliers"
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: A0004 OK List completed.
[02-Sep-2012 21:32:07 +0300](EEAE]): [C: A0005 LOGOUT
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: * BYE Logging out
[02-Sep-2012 21:32:07 +0300](EEAE]): [S: A0005 OK Logout completed.

And this I has when tried to do the same with child folder "mailing"

[02-Sep-2012 21:32:47 +0300](EEAE]): [S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=CRAM-MD5 AUTH=PLAIN AUTH=LOGIN](1D56]) Dovecot ready!
[21:32:47 +0300](02-Sep-2012): [C: A0001 ID ("name" "Roundcube Webmail" "version" "0.8.1" "php" "5.4.6" "os" "FreeBSD" "command" "/")
[02-Sep-2012 21:32:47 +0300](1D56]): [S: * ID NIL
[02-Sep-2012 21:32:47 +0300](1D56]): [S: A0001 OK ID completed.
[02-Sep-2012 21:32:47 +0300](1D56]): [C: A0002 AUTHENTICATE CRAM-MD5
[02-Sep-2012 21:32:47 +0300](1D56]): [S: + PDE4NDc5Njg5MjA2MTE0MTUuMTM0NjYxMDc2N0BiZXRhLnBlZWsubG9jYWw+
[02-Sep-2012 21:32:47 +0300](1D56]): [C: bXhtQHBlZWsucnUgN2YyNTIxOGZjZjJjZjUxMGFhN2VjMDViNThiZDE3MWE=
[02-Sep-2012 21:32:47 +0300](1D56]): [S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE ACL RIGHTS=texk](1D56]) Logged in
[21:32:47 +0300](02-Sep-2012): [C: A0003 LIST "" public.mailing
[02-Sep-2012 21:32:47 +0300](1D56]): [S: * LIST (\HasChildren) "." "public.mailing"
[02-Sep-2012 21:32:47 +0300](1D56]): [S: A0003 OK List completed.
[02-Sep-2012 21:32:47 +0300](1D56]): [C: A0004 MYRIGHTS public.mailing
[02-Sep-2012 21:32:47 +0300](1D56]): [S: * MYRIGHTS "public.mailing" lrwstipekxacd
[02-Sep-2012 21:32:47 +0300](1D56]): [S: A0004 OK Myrights completed.
[02-Sep-2012 21:32:47 +0300](1D56]): [C: A0005 CREATE public.mailing.123
[02-Sep-2012 21:32:47 +0300](1D56]): [S: A0005 OK Create completed.
[02-Sep-2012 21:32:47 +0300](1D56]): [C: A0006 SUBSCRIBE public.mailing.123
[02-Sep-2012 21:32:47 +0300](1D56]): [S: A0006 OK Subscribe completed.
[02-Sep-2012 21:32:47 +0300](1D56]): [C: A0007 LOGOUT
[02-Sep-2012 21:32:47 +0300](1D56]): [S: * BYE Logging out
[02-Sep-2012 21:32:47 +0300](1D56]): [1D56] S: A0007 OK Logout completed.

@rcubetrac
Copy link
Author

Comment by @alecpl on 3 Sep 2012 06:09 UTC

Replying to mxm:

Here is IMAP log when I tried to create folder "123" in public namespace root

[21:32:07 +0300](02-Sep-2012): [C: A0003 LIST "" public
[02-Sep-2012 21:32:07 +0300](EEAE]): [EEAE] S: * LIST (\Noselect \HasChildren) "." "public"

Ok. It looks that folder rights are not checked if the folder is marked as \Noselect. I'll investigate this.

@rcubetrac
Copy link
Author

Comment by mxm on 3 Sep 2012 06:27 UTC

Ok.
Let me know if you are will need some additional information.

@rcubetrac
Copy link
Author

Comment by @alecpl on 13 Sep 2012 18:34 UTC

Fixed in 4697c2c

@rcubetrac
Copy link
Author

Status changed by @alecpl on 13 Sep 2012 18:34 UTC

new => closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant