5829
INFORMATIONAL
Link Relation Types for Simple Version Navigation between Web Resources
Authors: A. Brown, G. Clemm, J. Reschke
Date: April 2010
Working Group: NON WORKING GROUP
Stream: IETF
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. This document is not an Internet Standards Track specification; it is published for informational purposes.
RFC 5829
INFORMATIONAL
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 <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc5829">http://www.rfc-editor.org/info/rfc5829</a>.
Copyright Notice
Copyright (c) 2010 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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.
<span class="grey">Brown, et al. Informational [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Terminology .....................................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. Link Relations ..................................................<a href="#page-4">4</a>
<a href="#section-3.1">3.1</a>. 'version-history' ..........................................<a href="#page-4">4</a>
<a href="#section-3.2">3.2</a>. 'latest-version' ...........................................<a href="#page-4">4</a>
<a href="#section-3.3">3.3</a>. 'working-copy' .............................................<a href="#page-4">4</a>
<a href="#section-3.4">3.4</a>. 'working-copy-of' ..........................................<a href="#page-4">4</a>
<a href="#section-3.5">3.5</a>. 'predecessor-version' ......................................<a href="#page-4">4</a>
<a href="#section-3.6">3.6</a>. 'successor-version' ........................................<a href="#page-5">5</a>
<a href="#section-4">4</a>. IANA Considerations .............................................<a href="#page-5">5</a>
<a href="#section-4.1">4.1</a>. 'version-history' Link Relation Registration ...............<a href="#page-5">5</a>
<a href="#section-4.2">4.2</a>. 'latest-version' Link Relation Registration ................<a href="#page-5">5</a>
<a href="#section-4.3">4.3</a>. 'working-copy' Link Relation Registration ..................<a href="#page-5">5</a>
<a href="#section-4.4">4.4</a>. 'working-copy-of' Link Relation Registration ...............<a href="#page-6">6</a>
<a href="#section-4.5">4.5</a>. 'predecessor-version' Link Relation Registration ...........<a href="#page-6">6</a>
<a href="#section-4.6">4.6</a>. 'successor-version' Link Relation Registration .............<a href="#page-6">6</a>
<a href="#section-5">5</a>. Security Considerations .........................................<a href="#page-6">6</a>
<a href="#section-6">6</a>. Acknowledgments .................................................<a href="#page-7">7</a>
<a href="#section-7">7</a>. References ......................................................<a href="#page-7">7</a>
<a href="#section-7.1">7.1</a>. Normative References .......................................<a href="#page-7">7</a>
<a href="#section-7.2">7.2</a>. Informative References .....................................<a href="#page-7">7</a>
<a href="#appendix-A">Appendix A</a>. Relationship to Java Content Repository (JCR) and
WebDAV ................................................<a href="#page-9">9</a>
<a href="#appendix-A.1">A.1</a>. Example: Use of Link Relations in HTTP Link Header .......<a href="#page-10">10</a>
<span class="grey">Brown, et al. Informational [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
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 ([<a href="./rfc5023" title=""The Atom Publishing Protocol"">RFC5023</a>]) bindings of
the "Content Management Interoperability Services" (CMIS). See
Section 3.4.3.3 of [<a href="#ref-CMIS" title=""Content Management Interoperability Services (CMIS) Version 1.0"">CMIS</a>] for further information.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
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").
<span class="grey">Brown, et al. Informational [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
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 [<a href="#ref-CMIS" title=""Content Management Interoperability Services (CMIS) Version 1.0"">CMIS</a>], [<a href="./rfc3253" title=""Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)"">RFC3253</a>],
and [<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>] for examples.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Link Relations</span>
The following link relations are defined.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. 'version-history'</span>
When included on a versioned resource, this link points to a resource
containing the version history for this resource.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. 'latest-version'</span>
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.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. 'working-copy'</span>
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.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. 'working-copy-of'</span>
When included on a working copy, this link points to the versioned
resource from which this working copy was obtained.
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. 'predecessor-version'</span>
When included on a versioned resource, this link points to a resource
containing the predecessor version in the version history.
<span class="grey">Brown, et al. Informational [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
Some systems may allow more than one of these link relations in the
case of multiple branches merging.
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a>. 'successor-version'</span>
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.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. IANA Considerations</span>
The link relations below have been registered by IANA per <a href="./rfc4287#section-7.1">Section 7.1
of [RFC4287]</a>:
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. 'version-history' Link Relation Registration</span>
Attribute Value: version-history
Description: See <a href="#section-3.1">Section 3.1</a>.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See <a href="#section-5">Section 5</a>.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. 'latest-version' Link Relation Registration</span>
Attribute Value: latest-version
Description: See <a href="#section-3.2">Section 3.2</a>.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See <a href="#section-5">Section 5</a>.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. 'working-copy' Link Relation Registration</span>
Attribute Value: working-copy
Description: See <a href="#section-3.3">Section 3.3</a>.
<span class="grey">Brown, et al. Informational [Page 5]</span>
<span id="page-6" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See <a href="#section-5">Section 5</a>.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. 'working-copy-of' Link Relation Registration</span>
Attribute Value: working-copy-of
Description: See <a href="#section-3.4">Section 3.4</a>.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See <a href="#section-5">Section 5</a>.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. 'predecessor-version' Link Relation Registration</span>
Attribute Value: predecessor-version
Description: See <a href="#section-3.5">Section 3.5</a>.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See <a href="#section-5">Section 5</a>.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. 'successor-version' Link Relation Registration</span>
Attribute Value: successor-version
Description: See <a href="#section-3.6">Section 3.6</a>.
Expected display characteristics: Undefined; this relation can be
used for background processing or to provide extended
functionality without displaying its value.
Security considerations: See <a href="#section-5">Section 5</a>.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
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.
<span class="grey">Brown, et al. Informational [Page 6]</span>
<span id="page-7" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
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 <a href="./rfc3253#section-16.2">Section 16.2 of [RFC3253]</a> for a similar
consideration in WebDAV Versioning). Note that this applies to
exposing link metadata in general, not only to links related to
versioning.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Acknowledgments</span>
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.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. References</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Normative References</span>
[<a id="ref-RFC4287">RFC4287</a>] Nottingham, M., Ed. and R. Sayre, Ed., "The Atom
Syndication Format", <a href="./rfc4287">RFC 4287</a>, December 2005.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Informative References</span>
[<a id="ref-CMIS">CMIS</a>] 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, <<a href="http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html">http://docs.oasis-open.org/cmis/CMIS/</a>
<a href="http://docs.oasis-open.org/cmis/CMIS/v1.0/cs01/cmis-spec-v1.0.html">v1.0/cs01/cmis-spec-v1.0.html</a>>.
Latest version available at
<<a href="http://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html">http://docs.oasis-open.org/cmis/CMIS/v1.0/</a>
<a href="http://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html">cmis-spec-v1.0.html</a>>
[<a id="ref-JSR-283">JSR-283</a>] Day Software, Nuescheler, D., and P. Piegaze, "Content
Repository API for Java(tm) Technology Specification",
Java Specification Request 283, August 2009,
<<a href="http://www.day.com/specs/jcr/2.0/">http://www.day.com/specs/jcr/2.0/</a>>.
[<a id="ref-RFC3253">RFC3253</a>] Clemm, G., Amsden, J., Ellison, T., Kaler, C., and J.
Whitehead, "Versioning Extensions to WebDAV (Web
Distributed Authoring and Versioning)", <a href="./rfc3253">RFC 3253</a>,
March 2002.
[<a id="ref-RFC5023">RFC5023</a>] Gregorio, J. and B. de hOra, "The Atom Publishing
Protocol", <a href="./rfc5023">RFC 5023</a>, October 2007.
<span class="grey">Brown, et al. Informational [Page 7]</span>
<span id="page-8" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
[<a id="ref-WEB-LINKING">WEB-LINKING</a>]
Nottingham, M., <a style="text-decoration: none" href='https://www.google.com/search?sitesearch=datatracker.ietf.org%2Fdoc%2Fhtml%2F&q=inurl:draft-+%22Web+Linking%22'>"Web Linking"</a>, Work in Progress,
March 2010.
<span class="grey">Brown, et al. Informational [Page 8]</span>
<span id="page-9" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. Relationship to Java Content Repository (JCR) and WebDAV</span>
The link relations defined in <a href="#section-3">Section 3</a> correspond to various
properties used in WebDAV Versioning [<a href="./rfc3253" title=""Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)"">RFC3253</a>] and JCR [<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>]:
version-history
WebDAV: the resource identified by the DAV:version-history
property ([<a href="./rfc3253" title=""Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)"">RFC3253</a>], Sections <a href="#section-5.2.1">5.2.1</a> and <a href="#section-5.3.1">5.3.1</a>).
JCR: the node identified by jcr:versionHistory property
([<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>], Section 3.13.2.4) for versionable nodes, the parent
folder for version nodes.
latest-version
WebDAV: for version-controlled resources, DAV:checked-in
(<a href="./rfc3253#section-3.2.1">[RFC3253], Section 3.2.1</a>) or DAV:checked-out ([<a href="./rfc3253" title=""Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)"">RFC3253</a>], <a href="#section-3.3.1">Section</a>
<a href="#section-3.3.1">3.3.1</a>), 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
([<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>], 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
<a href="./rfc3253#section-3.4.3">[RFC3253], Section 3.4.3</a>).
JCR: for checked-out versionable nodes: the node itself.
working-copy-of
WebDAV: the resource identified by the DAV:checked-out property
(see <a href="./rfc3253#section-3.3.1">[RFC3253], Section 3.3.1</a>).
JCR: for checked-out versionable nodes: the node identified by the
jcr:baseVersion property ([<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>], Section 3.13.12.5).
<span class="grey">Brown, et al. Informational [Page 9]</span>
<span id="page-10" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
predecessor-version
WebDAV: each resource identified by a member of DAV:predecessor-
set ([<a href="./rfc3253" title=""Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)"">RFC3253</a>], Sections <a href="#section-3.3.2">3.3.2</a> and <a href="#section-3.4.1">3.4.1</a>).
JCR: each node identified by a member of jcr:predecessors
([<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>], Section 3.13.3.3).
successor-version
WebDAV: each resource identified by a member of DAV:successor-set
(<a href="./rfc3253#section-3.4.2">[RFC3253], Section 3.4.2</a>).
JCR: each node identified by a member of jcr:successors
([<a href="#ref-JSR-283" title=""Content Repository API for Java(tm) Technology Specification"">JSR-283</a>], Section 3.13.3.4).
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a>. Example: Use of Link Relations in HTTP Link Header</span>
The "Web Linking" specification ([<a href="#ref-WEB-LINKING">WEB-LINKING</a>]) 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 ([<a href="./rfc4287" title=""The Atom Syndication Format"">RFC4287</a>]) or WebDAV properties ([<a href="./rfc3253" title=""Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)"">RFC3253</a>]).
For instance, a response to a VERSION-CONTROL request (<a href="./rfc3253#section-3.5">[RFC3253],
Section 3.5</a>) 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.)
<span class="grey">Brown, et al. Informational [Page 10]</span>
<span id="page-11" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
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
<span class="grey">Brown, et al. Informational [Page 11]</span>
<span id="page-12" ></span>
<span class="grey"><a href="./rfc5829">RFC 5829</a> Version Navigation Link Relations April 2010</span>
Authors' Addresses
Al Brown
IBM
3565 Harbor Blvd
Costa Mesa, California 92626
USA
EMail: [email protected]
Geoffrey Clemm
IBM
20 Maguire Road
Lexington, MA 02421
USA
EMail: [email protected]
Julian F. Reschke (editor)
greenbytes GmbH
Hafenweg 16
Muenster, NW 48155
Germany
EMail: [email protected]
URI: <a href="http://greenbytes.de/tech/webdav/">http://greenbytes.de/tech/webdav/</a>
Brown, et al. Informational [Page 12]
Annotations
Select text to annotate