Skip to content

Commit e23f80f

Browse files
committed
TODOs
1 parent ce9b104 commit e23f80f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

webdav-push-draft.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ Example: `<P:topic>O7M1nQ7cKkKTKsoS_j6Z3w</P:topic>`
190190

191191
# Subscription management
192192

193+
> **TODO:** ACL for registering subscriptions?
194+
193195

194196
## Subscription registration
195197

@@ -202,7 +204,7 @@ How to subscribe to collections on the WebDAV server. Required information:
202204
- Expiration? how long by default, min/max (24 h), server decides (and can impose limits)
203205
- (End-to-end-encryption? Or should it be defined per transport?)
204206

205-
TODO By now, only updates in direct members (equals `Depth: 1`) are sent. Maybe it could be specified that servers can send one notification per path segment? Implications?
207+
> **TODO:** By now, only updates in direct members (equals `Depth: 1`) are sent. Maybe it could be specified that servers can send one notification per path segment? Implications?
206208
207209
To subscribe to a collection, the client sends a POST request with
208210
`Content-Type: application/xml` to the collection it wants to subscribe. The root XML element of the XML body is `push-register` in the WebDAV-Push name space (`DAV:Push`) and can be used to distinguish between a WebDAV-Push and other requests.
@@ -215,6 +217,8 @@ Allowed response codes:
215217
* 204 if the subscription was registered
216218
* other response code with usual HTTP/WebDAV semantics (if possible, with `DAV:error` XML body)
217219

220+
> **TODO**: Always return expiration
221+
218222
In any case, when a subscription is registered the first time, the server creates a URL that identifies that registration (_registration URL_). That URL is sent in the `Location` header and can be used to remove the subscription.
219223

220224
Sample request for Web Push:
@@ -357,7 +361,7 @@ Expiration ...
357361

358362
### Removal of invalid subscriptions
359363

360-
A WebDAV-Push server _must_ ensure that invalid subscriptions (encountered when trying to sending a push notification) are removed.
364+
A WebDAV-Push server _must_ ensure that invalid subscriptions (encountered when trying to sending a push notification) are removed at some time.
361365

362366
An invalid subscription is a subscription that push notifications can't be delivered to. Usually the push service returns an HTTP error code like 404 when it receives a notification for an invalid subscription. There may also be other conditions that render a subscription invalid, like a non-resolvable hostname or an encryption handshake error.
363367

@@ -420,7 +424,7 @@ applicable.
420424

421425
A WebDAV-Push server should use the collection topic as `Topic` header in push messages to replace previous notifications for the same collection.
422426

423-
> **NOTE**: [UnifiedPush](https://unifiedpush.org/) (UP) is a set of specification documents which are intentionally designed as a 100% compatible subset of Web Push, together with a software that can be used to implement these documents. From a WebDAV-Push server perspective, UP endpoints can be seen as Web Push resources.
427+
> **NOTE**: [UnifiedPush](https://unifiedpush.org/) (UP) is a specification which is intentionally designed as a 100% compatible subset of Web Push, together with a software that can be used to implement these documents. From a WebDAV-Push server perspective, UP endpoints can be seen as Web Push resources.
424428
425429
![Flowchart: WebDAV-Push over UnifiedPush](images/unifiedpush-flowchart.png)
426430

@@ -486,3 +490,12 @@ Topic: R3iM_PAQ7OMDAXW4-mMna7rqSGI
486490
487491
<push message>
488492
```
493+
494+
495+
### VAPID
496+
497+
Additional properties
498+
499+
### Message encryption
500+
501+
How to send the encrypted push message

0 commit comments

Comments
 (0)