Skip to content

Commit ead8c09

Browse files
committed
Depth: use infinity instead of infinite
(as required by RFC 4918)
1 parent 89780f4 commit ead8c09

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

content.mkd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,15 @@ The `content` element contains a `{DAV:}depth` element that specifies whether th
203203

204204
- only in content updates of the subscribed resource (depth: `0`),
205205
- only in content updates of the subscribed resource and its internal members (depth: `1`), or
206-
- in content updates of the subscribed resource and its members (depth: `infinite`).
206+
- in content updates of the subscribed resource and its members (depth: `infinity`).
207207

208208
A content update of a collection itself (not of a member) only occurs when the collection has an entity body that is returned by `GET` and that body changes. A server MAY ignore such changes and not send notifications in that case.
209209

210210
A server SHOULD support content update notifications with a depth of at least `1` for every Push-capable collection.
211211

212212
If the subscribed resource doesn't support the content update trigger with the requested depth, the server MUST fall back to the lowest supported value instead. If the content update trigger isn't supported for the subscribed resource at all, it MUST be ignored.
213213

214-
In case the depth is `infinite`, the limitations described in {{Section 3.3 of RFC6578}} apply: notifications about changes in members which are not supported by the `DAV:sync-collection` report may not be sent.
214+
In case the depth is `infinity`, the limitations described in {{Section 3.3 of RFC6578}} apply: notifications about changes in members which are not supported by the `DAV:sync-collection` report may not be sent.
215215

216216
### Property Updates {#property-updates}
217217

@@ -221,11 +221,11 @@ A "property update" occurs when the WebDAV properties of the subscribed resource
221221

222222
- only in property updates of the subscribed resource (depth: `0`),
223223
- only in property updates of the subscribed resource and its internal members (depth: `1`), or
224-
- in property updates of the subscribed resource and its members (depth: `infinite`).
224+
- in property updates of the subscribed resource and its members (depth: `infinity`).
225225

226226
If the subscribed resource doesn't support the content update trigger with the requested depth, the server MUST fall back to the lowest supported value instead. If the content update trigger isn't supported for the subscribed resource at all, it MUST be ignored.
227227

228-
In case the depth is `infinite`, the limitations described in {{Section 3.3 of RFC6578}} apply: notifications about changes in members which are not supported by the `DAV:sync-collection` report may not be sent.
228+
In case the depth is `infinity`, the limitations described in {{Section 3.3 of RFC6578}} apply: notifications about changes in members which are not supported by the `DAV:sync-collection` report may not be sent.
229229

230230
2. The optional `{DAV:}prop` element (as used in a `PROPFIND` request) specifies a list of properties that the client is interested in.
231231

@@ -265,7 +265,7 @@ Location: https://example.com/webdav/subscriptions/io6Efei4ooph
265265
Expires: Wed, 02 Oct 2024 07:28:00 GMT
266266
~~~
267267

268-
Example 2: A client registers a content update trigger with a depth of `infinite` and a property update trigger with a depth of `1`, but the collection supports only content update triggers with a depth of `1` and doesn't support the property update trigger at all, it registers the subscription and responds with 201. Notifications will then only be sent on content updates with a depth of `1` (trigger downgraded by server). On property updates, notifications will not be sent (trigger ignored by server).
268+
Example 2: A client registers a content update trigger with infinite depth and a property update trigger with a depth of `1`, but the collection supports only content update triggers with a depth of `1` and doesn't support the property update trigger at all, it registers the subscription and responds with 201. Notifications will then only be sent on content updates with a depth of `1` (trigger downgraded by server). On property updates, notifications will not be sent (trigger ignored by server).
269269

270270
Example 3: A client registers a property update trigger with a depth of `0` and the collection doesn't support property update triggers at all, the server ignores the trigger. So all triggers of the request are ignored and the server responds with 403 with `no-supported-trigger`.
271271

xml/sample-push-register.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</subscription>
1010
<trigger>
1111
<content-update>
12-
<D:depth>infinite</D:depth>
12+
<D:depth>infinity</D:depth>
1313
</content-update>
1414
<property-update>
1515
<D:depth>0</D:depth>

xml/webdav-push.rng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
<choice>
212212
<value>0</value>
213213
<value>1</value>
214-
<value>infinite</value>
214+
<value>infinity</value>
215215
</choice>
216216
</element>
217217
</define>

0 commit comments

Comments
 (0)