“Show only own calendars” logic #107
Replies: 4 comments 7 replies
-
Hello Dilyan! Thanks for the input on this. Is this a real-life problem? Just asking because we've implemented the "Show only personal" option for a specific server (eGroupware) which needed this for certain users (namely admin users that have access to a lot collections) that were overwhelmed by a huge list of collections in the DAVx5 CalDAV tab. |
Beta Was this translation helpful? Give feedback.
-
The problem is that I see an option, which option does not do what I think it shall do. In such cases the option shall be hidden from the user. I can provide a server to test the logic I described initially. In any case, there is no documentation how DAVx⁵ determines, if a collection belongs to the logged in user. |
Beta Was this translation helpful? Give feedback.
-
Hello Dilyan @dilyanpalauzov , After some interal discussion, we decided to stick with the current implementation and document it. We chose to make a difference between whether a collection is considered "personal" or "owned" in regards to the current-user-principal. The internal logic for deciding whether a collection is personal is the following: Collections are considered personal if listed in the homeset of See the documentation here: https://manual.davx5.com/accounts_collections.html#personal-collections |
Beta Was this translation helpful? Give feedback.
-
Yes, true. A principal may have multiple homesets. We should update that. This does however not change the definition by which DAVx5 decides whether a collection is personal or not. Let me put it another way: Here is a piece of pseudo code which might explain it better than words:
I do agree with you that "personal" vs "owned" is misleading terminology in the UI, but as @devvv4ever said, this functionality was built for a specific server where calendars are shared into other principal homesets. |
Beta Was this translation helpful? Give feedback.
-
When I setup a CardDAV/CalDAV account, the account has a current-user-principal URL property in terms of WebDAV. When the user provides the complete collection URL there might be no principal-URL, but with proper WebDAV-server there is a current-user-principal-URL.
For each collection, under Properties, DAVx⁵ shows the owner of the collection.
DAVx⁵ has the option to show only own collections. I expect that DAVx⁵ compares the owner of each collection to the DAV:current-user-principal value and decides on this criterion whether a collection belongs to the current user or to a different user. Albeit, DAVx⁵ uses apparently a different logic to determine, if a collection belongs to the currently registered user. The implemented logic is not explained at https://www.davx5.com/manual/accounts_collections.html or https://www.davx5.com/manual/technical_information.html.
Please tweak DAVx⁵ to handle as own collections/hide as foreign collections, the collections, whose owner is distinct from the value of DAV:current-user-principal.
Beta Was this translation helpful? Give feedback.
All reactions