Opened 13 months ago
Closed 13 months ago
#1488443 closed Bug Patches (fixed)
Patch: Fix creating folders in !personal namespace
| Reported by: | sthen | Owned by: | |
|---|---|---|---|
| Priority: | 4 | Milestone: | 0.8-rc |
| Component: | Core functionality | Version: | 0.7.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Creating folders in namespaces other than "personal" fails if any ACL exists, the diff is pretty self-explanatory.
Change History (2)
comment:1 Changed 13 months ago by sthen
comment:2 Changed 13 months ago by alec
- Resolution set to fixed
- Status changed from new to closed
Fixed in r6099/svn.
Note: See
TracTickets for help on using
tickets.

Permission denied when I tried to attach the ticket in trac. Pasting it inline here instead.
Index: program/steps/settings/save_folder.inc =================================================================== --- program/steps/settings/save_folder.inc (revision 6096) +++ program/steps/settings/save_folder.inc (working copy) @@ -77,7 +77,8 @@ if (!$error && strlen($path) && (!strlen($old_imap) || $old_imap != $name_imap)) { $parent_opts = $STORAGE->folder_info($path); if ($parent_opts['namespace'] != 'personal' - && (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts))) + && (empty($parent_opts['rights']) + || !preg_match('/[ck]/', implode($parent_opts['rights']))) ) { $error = rcube_label('parentnotwritable'); }