6.0.0-beta1
9/24/25

[#4971] Preexisting user's calendar does not get necessary attribute when the user joins a group
Summary Preexisting user's calendar does not get necessary attribute when the user joins a group
Queue Kronolith
Queue Version 2.1.4
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester ntai (at) smartfruit (dot) com
Created 02/05/2007 (6806 days ago)
Due
Updated 02/06/2007 (6805 days ago)
Assigned
Resolved 02/05/2007 (6806 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/06/2007 06:18:18 PM ntai (at) smartfruit (dot) com Comment #6 Reply to this comment

[Show Quoted Text - 17 lines]
It was not a good description.



A user "FOO"'s calendar was not viewable from other group members.



This happens when "FOO"'s calendar gets created before the group gets created.



I had to manually add an entry into horde_datatree_attributes table to 
make it viewable for other group members. Following is the entry I 
added.



horde=# select * from horde_datatree_attributes where datatree_id = 10 
and attribute_name = 'perm_groups';

  datatree_id | attribute_name | attribute_key | attribute_value

-------------+----------------+---------------+-----------------

           10 | perm_groups    | 7             | 14

(1 row)



I noticed that all other group members who's calendar gets created 
after the group gets created this 'perm_groups' entry.






02/06/2007 06:09:26 PM ntai (at) smartfruit (dot) com Comment #5 Reply to this comment
I do not understand that joining a user to group does not
automatically allow some sort of sharing, and sharing only happens
when and only when the particular user happens to not have the
calendar object in backend.
If you add a user to a group, that user can then see all calendars
for that group. It doesn't mean anything about who can access that
user's calendar.
Let me clarify the problem.



A user "FOO" who already had a calendar, and joined to a group.

Other group members do not see the "FOO"'s calendar, only when "FOO" 
happens to have the calendar before the group is created.



From what you described here, I think that my problem is indeed a bug then.


02/06/2007 05:45:18 PM Chuck Hagenbuch Comment #4 Reply to this comment
Not sure why you would expect it to, either. This is completely
reasonable and intended behavior.
Please kindly explain why it is unreasonable.
Not that it really matters but I said the current behavior was 
reasonable, not that your request was unreasonable.
I do not understand that joining a user to group does not
automatically allow some sort of sharing, and sharing only happens
when and only when the particular user happens to not have the
calendar object in backend.
If you add a user to a group, that user can then see all calendars for 
that group. It doesn't mean anything about who can access that user's 
calendar.
02/06/2007 03:21:11 PM ntai (at) smartfruit (dot) com Comment #3 Reply to this comment
Not sure why you would expect it to, either. This is completely
reasonable and intended behavior.
Please kindly explain why it is unreasonable.

Say, if you have 100's of users, created at different times.

You create a new group, and these users join a group, but, there is no 
way to share the calendar.

After designating users to a group, if a user happens to be not have 
the calendar in backend, it is shared. If you happen to already have a 
calendar in backend at the time of joining the group, it is not shared.

I do not understand that joining a user to group does not 
automatically allow some sort of sharing, and sharing only happens 
when and only when the particular user happens to not have the 
calendar object in backend.

I'd appriciate your help. Thank you!


02/05/2007 03:48:56 PM Chuck Hagenbuch Comment #2
State ⇒ Not A Bug
Reply to this comment
Not sure why you would expect it to, either. This is completely 
reasonable and intended behavior.
02/05/2007 03:35:54 PM ntai (at) smartfruit (dot) com Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Preexisting user's calendar does not get necessary attribute when the user joins a group
Queue ⇒ Kronolith
State ⇒ Unconfirmed
Reply to this comment
User "A" gets created first. "A" starts to use the calendar, so the 
calendar already exists in the database.

The group "G" gets created second.

When "A" joins the group "G", existing calendar does not get the 
necessary attribute in horde_datatree_attributes for the group to 
share the calendar.

In short, attribute_name "perm_group" does not get created when a user 
joins a group when the user's calendar already exists.


Saved Queries