6.0.0-alpha10
5/14/25

[#12141] Namespace matching bug
Summary Namespace matching bug
Queue Kolab
Type Bug
State Assigned
Priority 1. Low
Owners thomas.jarosch (at) intra2net (dot) com
Requester matthias (at) familie-burghardt (dot) net
Created 03/26/2013 (4432 days ago)
Due
Updated 08/27/2013 (4278 days ago)
Assigned 08/27/2013 (4278 days ago)
Resolved
Milestone
Patch No

History
08/27/2013 10:36:26 AM Jan Schneider State ⇒ Assigned
 
04/24/2013 11:29:04 AM matthias (at) familie-burghardt (dot) net Comment #6 Reply to this comment
This works fine for me. I'm using cyrus imapd 2.3.16, which IMAP 
server are you using?

My own calendar is as "INBOX/Kalender" and will be seen by other 
users as "user/something/Kalender".
I'm using dovecot 2. Maybe it depends on the order in which the 
namespaces are reported by the server. Mine said
* NAMESPACE (("" "/")("kolab/" "/")) (("kolab_shared/" "/")) 
(("kolab_public/" "/"))
The own calendar was then
* LIST (\HasNoChildren) "/" "kolab/Kalender"
ans was seen by other users as
* LIST (\HasNoChildren) "/" "kolab_shared/[my user name]/Kalender"
Maybe it was also due to the non-standard Kolab setup that I did. 
Anyway, I changed "kolab" to "kolab_personal" so the error has vanished.

HTH
Matthias

04/17/2013 12:37:42 PM Thomas Jarosch Comment #5 Reply to this comment
ping matthias ;)

03/27/2013 08:41:14 AM Thomas Jarosch Comment #4 Reply to this comment
Any easy steps to reproduce it?
Sharing a calendar produces a "Share id ... not found" exception in 
any account other than the calendar owner, when opening kronolith
This works fine for me. I'm using cyrus imapd 2.3.16, which IMAP 
server are you using?

My own calendar is as "INBOX/Kalender" and will be seen by other users 
as "user/something/Kalender".

I'm asking these details as I want to write a unit test that fails for 
your case, fix the code and then run the test again. Thanks.

03/26/2013 09:33:42 PM matthias (at) familie-burghardt (dot) net Comment #3 Reply to this comment
How did you discover this bug?
Any easy steps to reproduce it?
Sharing a calendar produces a "Share id ... not found" exception in 
any account other than the calendar owner, when opening kronolith
03/26/2013 02:00:39 PM Thomas Jarosch State ⇒ Feedback
Assigned to Thomas Jarosch
 
03/26/2013 02:00:20 PM Thomas Jarosch Comment #2 Reply to this comment
The function matches() in 
Kolab/Storage/Folder/Namespace/Element.php:102 gives wrong result if 
one namespace name is a left-anchored substring of another, e.g. 
'kolab' and 'kolab_shared'.
Yes, correct, it looks like a bug.

How did you discover this bug?
Any easy steps to reproduce it?

03/26/2013 01:45:45 PM matthias (at) familie-burghardt (dot) net Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Namespace matching bug
Queue ⇒ Kolab
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
The function matches() in 
Kolab/Storage/Folder/Namespace/Element.php:102 gives wrong result if 
one namespace name is a left-anchored substring of another, e.g. 
'kolab' and 'kolab_shared'.

Saved Queries