Link Relations for Simple Version NavigationIBM3565 Harbor BlvdCosta MesaCalifornia92626USalbertcbrown@us.ibm.comIBM20 Maguire RoadLexingtonMA02421USgeoffrey.clemm@us.ibm.comgreenbytes GmbHHafenweg 16MuensterNW48155Germanyjulian.reschke@greenbytes.dehttp://greenbytes.de/tech/webdav/
This specification defines Atom link relations for navigation between
a resource and its versions.
Please send comments to the Atom Syntax mailing list
().
Note that although discussion takes place on the Atompub working
group's mailing list, this is not a working group document.
XML versions, latest edits and the issues list for this document
are available from .
Umbrella issue for editorial fixes/enhancements.
Add a pointer to the CMIS spec, so AtomPub use cases become clearer.
Done.
This specification defines link relations that may be used on a
resource that exists in a system that supports versioning to navigate
among the different resources available, such as past versions.
These link relations are used in the AtomPub () bindings
of the "Content Management Interoperability Services" (CMIS). See
for
further information.
It is not clear to me, what the meaning of 'check out' and 'check in'. Also, the text (IMO) creates the impression that versioning can only take place when 'check out' and 'check in' are applied. However, a resource could also be versioned by the server upon any modification made by a client regardless of any 'checking out' or 'checking in'. The link relations specified would still make sense.
Assuming that 'checking out' and 'checking in' are operations on resources, I think the draft should address how clients achieve these operations. This would at least involve another link relation and specification how to use the linked resource to perform a checkout.
Rephrased terminology; added explanations for checkin/checkout.
Versioned Resource
When a resource is put under version control, it becomes a "versioned
resource". A versioned resource can be "checked out" to allow
modification.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
modifiedused 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").
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 ,
and for examples.
...what is your opinion regarding the introduction of a link relation that is the opposite of working-copy in order to being able to find the versioned resource that the working copy I have is a working copy of?
I am undecided regarding the necessity, but without a working-copy-of relation it seems the client would need to maintain that information (the relationship or the fact that a given resource is a working copy) across requests.
The following link relations are defined:
When included on a versioned resource, this link points to a resource
containing the version history for this resource.
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 multiple of these link relations.
When included on a versioned resource, this link points to a working copy
for this resource.
Some systems may allow multiple of these link relations.
When included on a working copy, this link points to the versioned resource
from which this working copy was obtained.
When included on a versioned resource, this link points to a resource
containing the predecessor version in the version history.
Some systems may allow multiple of these link relations in the case of a
multiple branches merging.
When included on a versioned resource, this link points to a resource
containing the successor version in the version history.
Some systems may allow multiple of these link relations in order to
support branching.
The link relations below are to be registered by IANA per :
version-history
See .
Undefined; this relation can be used for background processing or to provide
extended functionality without displaying its value.
See .
latest-version
See .
Undefined; this relation can be used for background processing or to provide
extended functionality without displaying its value.
See .
working-copy
See .
Undefined; this relation can be used for background processing or to provide
extended functionality without displaying its value.
See .
working-copy-of
See .
Undefined; this relation can be used for background processing or to provide
extended functionality without displaying its value.
See .
predecessor-version
See .
Undefined; this relation can be used for background processing or to provide
extended functionality without displaying its value.
See .
successor-version
See .
Undefined; this relation can be used for background processing or to provide
extended functionality without displaying its value.
See .
Automated agents should take care when these relation
crosses administrative domains (e.g., the URI has a different
authority than the current document).
Such agents should also take care to detect circular references.
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.
The Atom Syndication FormatVersioning Extensions to WebDAV (Web Distributed
Authoring and Versioning)Rational Software (IBM)IBMMicrosoftU.C. Santa CruzThe Atom Publishing ProtocolGooglejoe@bitworking.orgNewBay Softwarebill@dehora.netContent Repository API for Java(tm) Technology SpecificationDay SoftwareDay SoftwareDay SoftwareWeb Linkingmnot@mnot.nethttp://www.mnot.net/Content Management Interoperability Services (CMIS) Version 1.0IBMMicrosoftOracleOpenText
The link relations defined in correspond to
various properties used in WebDAV Versioning
and JCR :
version-history
WebDAV: the resource identified by the DAV:version-history property
(, Sections and ).
JCR: the node identified by jcr:versionHistory
property () for
versionable nodes, the parent folder for version nodes.
latest-version
WebDAV: for version-controlled resources, DAV:checked-in () or
DAV:checked-out (), 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 ()
for versionable nodes; for version nodes, a successor version that itself does
not have any successors.
working-resourcecopy
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 ).
JCR: for checked-out versionable nodes: the node itself.
working-copy-of
WebDAV: the resource identified by the the DAV:checked-out
property (see ).
JCR: for checked-out versionable nodes: the node identified by the
jcr:baseVersion property ().
predecessor-version
WebDAV: each resource identified by a member of DAV:predecessor-set (, Sections and ).
JCR: each node identified by a member of jcr:predecessors ().
successor-version
WebDAV: each resource identified by a member of DAV:successor-set ().
JCR: each node identified by a member of jcr:successors ().
The "Web Linking" specification ()
generalizes Atom link relations, and also re-introduces 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 () or WebDAV properties
().
For instance, a response to an VERSION-CONTROL request () could
expose newly created version-history and checked-in version as link relations:
A subsequent HEAD request on that resource could expose the version-history
and latest-version relations as well:
After creating more versions, following the latest-version would then expose
predecessors of a version:
The content and concepts within are a product of the Content Management
Interoperability Services (CMIS) Technical Committee (TC) at OASIS.
All members of the TC have contributed.
Added Geoff Clemm as author.
Renamed link relation "all-versions" to "version-history". Fixed
description of "working-resource" relation to state that it appears
on a version resource.
Rewrite terminology and link relations using simpler definitions
that can reflect versioning approaches different from WebDAV.
Add JCR/WebDAV property table. And reference to Web Linking draft
(for now informative) and examples showing use of the Link header.
Add and resolve issue "iana".
Fix typo ("working-resource" instead of "working-copy").
Add and resolve issues "checked-out", "cmis" and "working-copy-of".