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
// Can't use CV as an OCC Value when a document is in conflict, or we're updating the non-winning leaf
1164
+
// There's no way to get from a given old CV to a RevTreeID to perform the update correctly, since we don't maintain linear history for a given SourceID.
1165
+
// Reject the request and force the user to resolve the conflict using RevTree IDs which does have linear history available.
1166
+
conflictErr=base.HTTPErrorf(http.StatusBadRequest, "Cannot use CV to modify a document in conflict - resolve first with RevTree ID")
// This error isn't very accurate, you just _cannot_ use POST to update an existing document - even if it does exist. We don't even bother checking for existence.
2922
+
ifbody[BodyRev] !=nil||body[BodyCV] !=nil {
2897
2923
return"", "", nil, base.HTTPErrorf(http.StatusNotFound, "No previous revision to replace")
Copy file name to clipboardExpand all lines: docs/api/components/parameters.yaml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,13 @@ DB-config-If-Match:
13
13
schema:
14
14
type: string
15
15
description: 'If set to a configuration''s Etag value, enables optimistic concurrency control for the request. Returns HTTP 412 if another update happened underneath this one.'
16
-
If-Match:
16
+
Document-If-Match:
17
17
name: If-Match
18
18
in: header
19
19
required: false
20
20
schema:
21
21
type: string
22
-
description: The revision ID to target.
22
+
description: An optimistic concurrency control (OCC) value used to prevent conflicts. Use the value returned in the ETag response header of the GET request for the resource being updated, or the latest known Revision Tree ID or Current Version of the document.
23
23
Include-channels:
24
24
name: channels
25
25
in: query
@@ -342,7 +342,7 @@ rev:
342
342
schema:
343
343
type: string
344
344
example: 2-5145e1086bb8d1d71a531e9f6b543c58
345
-
description: The document revision to target.
345
+
description: The document revision to target. If this is a CV value, ensure the query parameter is URL encoded (`+`->`%2B`, `@`->`%40`, etc.)
346
346
revs_from:
347
347
name: revs_from
348
348
in: query
@@ -393,7 +393,7 @@ show_cv:
393
393
required: false
394
394
schema:
395
395
type: boolean
396
-
description: Output the current version of the version vector in the response as property `_cv`.
396
+
description: Output the Current Version in the response as property `_cv`.
0 commit comments