1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
|
Internet Engineering Task Force (IETF) A. Brown
Request for Comments: 5829 G. Clemm
Category: Informational IBM
ISSN: 2070-1721 J. Reschke, Ed.
greenbytes
April 2010
Link Relation Types for Simple Version Navigation between Web Resources
Abstract
This specification defines a set of link relation types that may be
used on Web resources for navigation between a resource and other
resources related to version control, such as past versions and
working copies.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Not all documents
approved by the IESG are a candidate for any level of Internet
Standard; see Section 2 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc5829.
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Brown, et al. Informational [Page 1]
^L
RFC 5829 Version Navigation Link Relations April 2010
Table of Contents
1. Introduction ....................................................3
2. Terminology .....................................................3
3. Link Relations ..................................................4
3.1. 'version-history' ..........................................4
3.2. 'latest-version' ...........................................4
3.3. 'working-copy' .............................................4
3.4. 'working-copy-of' ..........................................4
3.5. 'predecessor-version' ......................................4
3.6. 'successor-version' ........................................5
4. IANA Considerations .............................................5
4.1. 'version-history' Link Relation Registration ...............5
4.2. 'latest-version' Link Relation Registration ................5
4.3. 'working-copy' Link Relation Registration ..................5
4.4. 'working-copy-of' Link Relation Registration ...............6
4.5. 'predecessor-version' Link Relation Registration ...........6
4.6. 'successor-version' Link Relation Registration .............6
5. Security Considerations .........................................6
6. Acknowledgments .................................................7
7. References ......................................................7
7.1. Normative References .......................................7
7.2. Informative References .....................................7
Appendix A. Relationship to Java Content Repository (JCR) and
WebDAV ................................................9
A.1. Example: Use of Link Relations in HTTP Link Header .......10
Brown, et al. Informational [Page 2]
^L
RFC 5829 Version Navigation Link Relations April 2010
1. Introduction
This specification defines a set of link relation types that may be
used on Web resources that exist in a system that supports versioning
to navigate among the different resources available, such as past
versions and working copies.
These link relations are used in the AtomPub ([RFC5023]) bindings of
the "Content Management Interoperability Services" (CMIS). See
Section 3.4.3.3 of [CMIS] for further information.
2. Terminology
Versioned Resource
When a resource is put under version control, it becomes a
"versioned resource". Many servers protect versioned resources
from modifications by considering them "checked in", and by
requiring a "checkout" operation before modification, and a
"checkin" operation to get back to the "checked-in" state. Other
servers allow modification, in which case the checkout/checkin
operation may happen implicitly.
Version History
A "version history" resource is a resource that contains all the
versions of a particular versioned resource.
Predecessor, Successor
When a versioned resource is checked out and then subsequently
checked in, the version that was checked out becomes a
"predecessor" of the version created by the checkin. A client can
specify multiple predecessors for a new version if the new version
is logically a merge of those predecessors. The inverse of the
predecessor relation is the "successor" relation. Therefore, if X
is a predecessor of Y, then Y is a successor of X.
Working Copy
A "working copy" is a resource at a server-defined URL that can be
used to create a new version of a versioned resource.
Checkout
A "checkout" is an operation on a versioned resource that creates
a working copy, or changes the versioned resource to be a working
copy as well ("in-place versioning").
Brown, et al. Informational [Page 3]
^L
RFC 5829 Version Navigation Link Relations April 2010
Checkin
A "checkin" is an operation on a working copy that creates a new
version of its corresponding versioned resource.
Note: the operations for putting a resource under version control
and for checking in and checking out depend on the protocol in use
and are beyond the scope of this document; see [CMIS], [RFC3253],
and [JSR-283] for examples.
3. Link Relations
The following link relations are defined.
3.1. 'version-history'
When included on a versioned resource, this link points to a resource
containing the version history for this resource.
3.2. 'latest-version'
When included on a versioned resource, this link points to a resource
containing the latest (e.g., current) version.
The latest version is defined by the system. For linear versioning
systems, this is probably the latest version by timestamp. For
systems that support branching, there will be multiple latest
versions, one for each branch in the version history.
Some systems may allow more than one of these link relations.
3.3. 'working-copy'
When included on a versioned resource, this link points to a working
copy for this resource.
Some systems may allow more than one of these link relations.
3.4. 'working-copy-of'
When included on a working copy, this link points to the versioned
resource from which this working copy was obtained.
3.5. 'predecessor-version'
When included on a versioned resource, this link points to a resource
containing the predecessor version in the version history.
Brown, et al. Informational [Page 4]
^L
RFC 5829 Version Navigation Link Relations April 2010
Some systems may allow more than one of these link relations in the
case of multiple branches merging.
3.6. 'successor-version'
When included on a versioned resource, this link points to a resource
containing the successor version in the version history.
Some systems may allow more than one of these link relations in order
to support branching.
4. IANA Considerations
The link relations below have been registered by IANA per Section 7.1
of [RFC4287]:
4.1. 'version-history' Link Relation Registration
Attribute Value: version-history
Description: See Section 3.1.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See Section 5.
4.2. 'latest-version' Link Relation Registration
Attribute Value: latest-version
Description: See Section 3.2.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See Section 5.
4.3. 'working-copy' Link Relation Registration
Attribute Value: working-copy
Description: See Section 3.3.
Brown, et al. Informational [Page 5]
^L
RFC 5829 Version Navigation Link Relations April 2010
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See Section 5.
4.4. 'working-copy-of' Link Relation Registration
Attribute Value: working-copy-of
Description: See Section 3.4.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See Section 5.
4.5. 'predecessor-version' Link Relation Registration
Attribute Value: predecessor-version
Description: See Section 3.5.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See Section 5.
4.6. 'successor-version' Link Relation Registration
Attribute Value: successor-version
Description: See Section 3.6.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See Section 5.
5. Security Considerations
Automated agents should take care when these relations cross
administrative domains (e.g., the URI has a different authority than
the current document). Such agents should also take care to detect
circular references.
Brown, et al. Informational [Page 6]
^L
RFC 5829 Version Navigation Link Relations April 2010
Care should be applied when versioned resources are subject to
differing access policies. In this case, exposing links may leak
information even if the linked resource itself is properly secured.
In particular, the syntax of the link target could expose sensitive
information (see Section 16.2 of [RFC3253] for a similar
consideration in WebDAV Versioning). Note that this applies to
exposing link metadata in general, not only to links related to
versioning.
6. Acknowledgments
Thanks to the members of Content Management Interoperability Services
(CMIS) Technical Committee (TC) at OASIS for the initial proposal,
and to Jan Algermissen for feedback during IETF review.
7. References
7.1. Normative References
[RFC4287] Nottingham, M., Ed. and R. Sayre, Ed., "The Atom
Syndication Format", RFC 4287, December 2005.
7.2. Informative References
[CMIS] Brown, A., Gur-Esh, E., McVeigh, R., and F. Mueller,
"Content Management Interoperability Services (CMIS)
Version 1.0", OASIS Content Management Interoperability
Services (CMIS) Version 1.0 Committee Specification 01,
March 2010, <http://docs.oasis-open.org/cmis/CMIS/
v1.0/cs01/cmis-spec-v1.0.html>.
Latest version available at
<http://docs.oasis-open.org/cmis/CMIS/v1.0/
cmis-spec-v1.0.html>
[JSR-283] Day Software, Nuescheler, D., and P. Piegaze, "Content
Repository API for Java(tm) Technology Specification",
Java Specification Request 283, August 2009,
<http://www.day.com/specs/jcr/2.0/>.
[RFC3253] Clemm, G., Amsden, J., Ellison, T., Kaler, C., and J.
Whitehead, "Versioning Extensions to WebDAV (Web
Distributed Authoring and Versioning)", RFC 3253,
March 2002.
[RFC5023] Gregorio, J. and B. de hOra, "The Atom Publishing
Protocol", RFC 5023, October 2007.
Brown, et al. Informational [Page 7]
^L
RFC 5829 Version Navigation Link Relations April 2010
[WEB-LINKING]
Nottingham, M., "Web Linking", Work in Progress,
March 2010.
Brown, et al. Informational [Page 8]
^L
RFC 5829 Version Navigation Link Relations April 2010
Appendix A. Relationship to Java Content Repository (JCR) and WebDAV
The link relations defined in Section 3 correspond to various
properties used in WebDAV Versioning [RFC3253] and JCR [JSR-283]:
version-history
WebDAV: the resource identified by the DAV:version-history
property ([RFC3253], Sections 5.2.1 and 5.3.1).
JCR: the node identified by jcr:versionHistory property
([JSR-283], Section 3.13.2.4) for versionable nodes, the parent
folder for version nodes.
latest-version
WebDAV: for version-controlled resources, DAV:checked-in
([RFC3253], Section 3.2.1) or DAV:checked-out ([RFC3253], Section
3.3.1), depending on checkin state. For version resources, a
successor version that itself does not have any successors.
JCR: the version node identified by the jcr:baseVersion property
([JSR-283], Section 3.13.2.5) for versionable nodes; for version
nodes, a successor version that itself does not have any
successors.
working-copy
WebDAV: for version-controlled resources that are checked-out in
place: the resource itself. For version resources: each resource
identified by a member of the DAV:checkout-set property (see
[RFC3253], Section 3.4.3).
JCR: for checked-out versionable nodes: the node itself.
working-copy-of
WebDAV: the resource identified by the DAV:checked-out property
(see [RFC3253], Section 3.3.1).
JCR: for checked-out versionable nodes: the node identified by the
jcr:baseVersion property ([JSR-283], Section 3.13.12.5).
Brown, et al. Informational [Page 9]
^L
RFC 5829 Version Navigation Link Relations April 2010
predecessor-version
WebDAV: each resource identified by a member of DAV:predecessor-
set ([RFC3253], Sections 3.3.2 and 3.4.1).
JCR: each node identified by a member of jcr:predecessors
([JSR-283], Section 3.13.3.3).
successor-version
WebDAV: each resource identified by a member of DAV:successor-set
([RFC3253], Section 3.4.2).
JCR: each node identified by a member of jcr:successors
([JSR-283], Section 3.13.3.4).
A.1. Example: Use of Link Relations in HTTP Link Header
The "Web Linking" specification ([WEB-LINKING]) generalizes Atom link
relations, and also reintroduces the HTTP "Link" header as a way to
expose link relations in HTTP responses. This will make it possible
to expose version links independently from a specific vocabulary, be
it the Atom Feed Format ([RFC4287]) or WebDAV properties ([RFC3253]).
For instance, a response to a VERSION-CONTROL request ([RFC3253],
Section 3.5) could expose a newly created version-history and
checked-in version as link relations:
>> Request:
VERSION-CONTROL /docs/test.txt HTTP/1.1
Host: example.net
>> Response:
HTTP/1.1 204 No Content
Link: </system/v/84345634/1>; rel=latest-version;
anchor=</docs/test.txt>
Link: </system/vh/84345634>; rel=version-history;
anchor=</docs/test.txt>
(Note that in this case, the anchor parameter is used, as the
response to a VERSION-CONTROL request is not a representation of the
resource at the Request-URI.)
Brown, et al. Informational [Page 10]
^L
RFC 5829 Version Navigation Link Relations April 2010
A subsequent HEAD request on that resource could expose the version-
history and latest-version relations as well:
>> Request:
HEAD /docs/test.txt HTTP/1.1
Host: example.net
>> Response:
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 12345
Link: </system/v/84345634/1>; rel=latest-version
Link: </system/vh/84345634>; rel=version-history
After creating more versions, following the latest-version would then
expose predecessors of a version:
>> Request:
HEAD /system/v/84345634/3 HTTP/1.1
Host: example.net
>> Response:
HTTP/1.1 200 OK
Content-Type: text/plain; charset=UTF-8
Content-Length: 12323
Link: </system/v/84345634/2>; rel=predecessor-version
Brown, et al. Informational [Page 11]
^L
RFC 5829 Version Navigation Link Relations April 2010
Authors' Addresses
Al Brown
IBM
3565 Harbor Blvd
Costa Mesa, California 92626
USA
EMail: albertcbrown@us.ibm.com
Geoffrey Clemm
IBM
20 Maguire Road
Lexington, MA 02421
USA
EMail: geoffrey.clemm@us.ibm.com
Julian F. Reschke (editor)
greenbytes GmbH
Hafenweg 16
Muenster, NW 48155
Germany
EMail: julian.reschke@greenbytes.de
URI: http://greenbytes.de/tech/webdav/
Brown, et al. Informational [Page 12]
^L
|