Re: How to determine if a collection can be DELETEd?

On 29.09.2024 11:43, Дилян Палаузов wrote:
> Hello,
>
> how can a WebDAV client determine, if a collection can be deleted, so that it shows or hides a Delete button to the user?
>
> How is the Allow: header different from DAV:supported-method-set?  Does the former return results irrespective of the authentication state, but the latter
> • includes OPTIONS
> • possibly includes MOVE, and
> • considers the authentication state?
>
> WebDAV Access Control Protocol RFC says DELETE can be performed on collection, only if the parent has unbind privilege.  But the CalDAV’s Default calendar and the Scheduling Inbox collections cannot be deleted.  They can exist in the calendar-home-set collection, together with other, deletable calendars.  So the calendar-home-set must have unbind privilege, as some of its descendant can be deleted.  How to communicate to the WebDAV client which are deletable?

Communication it upfront may not be possible without extensions.

One potential approach would be defining a DAV systen property that
exposes the same information as the Allow response field.

Best regards, Julian

Received on Monday, 30 September 2024 06:13:26 UTC