You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content.mkd
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,9 @@ The `supported-triggers` element contains at least one of the following elements
140
140
-`content-update` if the collection supports push notifications on content updates ({{content-updates}}). It contains a `{DAV:}sync-level` property that indicates the maximum supported depth.
141
141
-`property-update` if the collection supports push notifications on property updates ({{property-updates}}). It contains a `{DAV:}depth` property that indicates the maximum supported depth.
142
142
143
-
Clients can use WebDAV `PROPFIND` to retrieve these properties. Example:
143
+
Clients can use WebDAV `PROPFIND` to retrieve these properties.
144
+
145
+
Example:
144
146
145
147
~~~
146
148
PROPFIND https://example.com/webdav/collection/
@@ -166,7 +168,7 @@ The comment shows how support for some other (not yet defined) transport could b
166
168
167
169
# Subscription Management
168
170
169
-
[^todo] Permissions / what to report when user is not allowed to register push.
171
+
WebDAV-Push SHOULD only be advertised to clients which are actually allowed to use it.
170
172
171
173
172
174
## Subscription Registration
@@ -214,8 +216,9 @@ Allowed response codes:
214
216
215
217
* 201 if the subscription was registered and the server wants to return additional information, like encryption details that are only valid for this subscription. Details have to be specified by the particular transport definition.
216
218
* 204 if the subscription was registered
217
-
* 400 when the request doesn't contain valid information (for instance, missing or invalid `subscription` or neither a content nor a property trigger)
218
-
* 403 with precondition `trigger-not-supported` when a requested trigger is not supported by the server or the collection
219
+
* 403 with precondition `invalid-subscription` when the request doesn't contain a valid `subscription`
220
+
* 403 with precondition `push-not-available` if WebDAV-Push is not available for this collection or if the user is not allowed to register a push subscription for it
221
+
* 403 with precondition `trigger-not-supported` when the request doesn't contain a trigger of when a requested trigger is not supported by the server or the collection
219
222
* other response code with usual HTTP/WebDAV semantics
220
223
221
224
When a subscription is registered the first time, the server creates a URL that identifies that registration (registration URL) which can be used to remove the subscription. The server MUST send the registration URL in the `Location` header.
0 commit comments