- From: Julian Reschke <julian.reschke@gmx.de>
- Date: Tue, 22 Nov 2005 15:03:37 +0100
- To: webdav WG <w3c-dist-auth@w3.org>
- CC: Lisa Dusseault <lisa@osafoundation.org>
- Message-ID: <43832539.5010803@gmx.de>
Lisa Dusseault wrote: > I'm in favour of this change, and were you to supply me with a diff, it > would happen all the sooner. Thanks ! OK, the attached source (+ diff) fixes: - artwork as discussed (also making indentation consistent and fixing XML errors) - makes the LOCK compatibility table a proper table (rfc2629 style) While doing this, I had also to re-add subsections for the examples (this was lost in an earlier draft; I suspect that was an error due to the conversion to XML source). Best regards, Julian
Index: draft-ietf-webdav-rfc2518bis-latest.xml =================================================================== RCS file: /var/cvsroot/xml2rfc/draft-ietf-webdav-rfc2518bis-latest.xml,v retrieving revision 1.9 diff -r1.9 draft-ietf-webdav-rfc2518bis-latest.xml 24a25 > <?rfc-ext parse-xml-in-artwork="yes"?> 1021,1038c1022,1037 < <figure> < <preamble>Example - Write Lock</preamble> < <artwork><![CDATA[ < < >>Request < < COPY /~fielding/index.html HTTP/1.1 < Host: www.ics.uci.edu < Destination: http://www.ics.uci.edu/users/f/fielding/index.html < If: <http://www.ics.uci.edu/users/f/fielding/index.html> < (<urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6>) < < < >>Response < < HTTP/1.1 204 No Content < < ]]></artwork> --- > <section title="Example - Write Lock"> > <figure> > <preamble>>>Request</preamble> > <artwork> > COPY /~fielding/index.html HTTP/1.1 > Host: www.ics.uci.edu > Destination: http://www.ics.uci.edu/users/f/fielding/index.html > If: <http://www.ics.uci.edu/users/f/fielding/index.html> > (<urn:uuid:f81d4fae-7dec-11d0-a765-00a0c91e6bf6>) > </artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork> > HTTP/1.1 204 No Content > </artwork> 1040d1038 < 1050a1049 > </section> 1218,1225c1217,1224 < HTTP/1.1 403 Forbidden < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:error xmlns:D="DAV:"> < <D:forbid-external-entities/> < </D:error> --- > HTTP/1.1 403 Forbidden > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx > > <?xml version="1.0" encoding="utf-8" ?> > <D:error xmlns:D="DAV:"> > <D:forbid-external-entities/> > </D:error> 1358a1358 > <preamble>>>Request</preamble> 1360,1361d1359 < >>Request < 1376,1378c1374,1378 < < >>Response < --- > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ 1422d1421 < 1423a1423 > <preamble>>>Request </preamble> 1425c1425,1429 < >>Request --- > PROPFIND /mycol/ HTTP/1.1 > Host: www.example.com > Depth: 1 > Content-type: text/xml; charset="utf-8" > Content-Length: xxxx 1427,1440c1431,1438 < PROPFIND /mycol/ HTTP/1.1 < Host: www.example.com < Depth: 1 < Content-type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:propfind xmlns:D="DAV:"> < <D:prop> < <D:creationdate/> < <D:getlastmodified/> < </D:prop> < <D:dead-props/> < </D:propfind> --- > <?xml version="1.0" encoding="utf-8" ?> > <D:propfind xmlns:D="DAV:"> > <D:prop> > <D:creationdate/> > <D:getlastmodified/> > </D:prop> > <D:dead-props/> > </D:propfind> 1451a1450,1456 > <figure> > <preamble>>>Request</preamble> > <artwork><![CDATA[ > PROPFIND /container/ HTTP/1.1 > Host: www.example.com > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 1452a1458,1463 > <?xml version="1.0" encoding="utf-8" ?> > <propfind xmlns="DAV:"> > <propname/> > </propfind> > ]]></artwork> > </figure> 1453a1465 > <preamble>>>Response</preamble> 1455,1505c1467,1504 < >>Request < PROPFIND /container/ HTTP/1.1 < Host: www.example.com < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <propfind xmlns="DAV:"> < <propname/> < </propfind> < < >>Response < < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <multistatus xmlns="DAV:"> < <response> < <href>http://www.example.com/container/</href> < <propstat> < <prop xmlns:R="http://www.example.com/boxschema/"> < <R:bigbox/> < <R:author/> < <creationdate/> < <displayname/> < <resourcetype/> < <supportedlock/> < </prop> < <status>HTTP/1.1 200 OK</status> < </propstat> < </response> < <response> < <href>http://www.example.com/container/front.html</href> < <propstat> < <prop xmlns:R="http://www.example.com/boxschema/"> < <R:bigbox/> < <creationdate/> < <displayname/> < <getcontentlength/> < <getcontenttype/> < <getetag/> < <getlastmodified/> < <resourcetype/> < <supportedlock/> < </prop> < <status>HTTP/1.1 200 OK</status> < </propstat> < </response> < </multistatus> --- > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx > > <?xml version="1.0" encoding="utf-8" ?> > <multistatus xmlns="DAV:"> > <response> > <href>http://www.example.com/container/</href> > <propstat> > <prop xmlns:R="http://www.example.com/boxschema/"> > <R:bigbox/> > <R:author/> > <creationdate/> > <displayname/> > <resourcetype/> > <supportedlock/> > </prop> > <status>HTTP/1.1 200 OK</status> > </propstat> > </response> > <response> > <href>http://www.example.com/container/front.html</href> > <propstat> > <prop xmlns:R="http://www.example.com/boxschema/"> > <R:bigbox/> > <creationdate/> > <displayname/> > <getcontentlength/> > <getcontenttype/> > <getetag/> > <getlastmodified/> > <resourcetype/> > <supportedlock/> > </prop> > <status>HTTP/1.1 200 OK</status> > </propstat> > </response> > </multistatus> 1612a1612 > <preamble>>>Request</preamble> 1614,1635c1614,1617 < >>Request < < PROPPATCH /bar.html HTTP/1.1 < Host: www.example.com < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:propertyupdate xmlns:D="DAV:" < xmlns:Z="http://www.w3.com/standards/z39.50/"> < <D:set> < <D:prop> < <Z:authors> < <Z:Author>Jim Whitehead</Z:Author> < <Z:Author>Roy Fielding</Z:Author> < </Z:authors> < </D:prop> < </D:set> < <D:remove> < <D:prop><Z:Copyright-Owner/></D:prop> < </D:remove> < </D:propertyupdate> --- > PROPPATCH /bar.html HTTP/1.1 > Host: www.example.com > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 1637c1619,1641 < >>Response --- > <?xml version="1.0" encoding="utf-8" ?> > <D:propertyupdate xmlns:D="DAV:" > xmlns:Z="http://www.w3.com/standards/z39.50/"> > <D:set> > <D:prop> > <Z:authors> > <Z:Author>Jim Whitehead</Z:Author> > <Z:Author>Roy Fielding</Z:Author> > </Z:authors> > </D:prop> > </D:set> > <D:remove> > <D:prop><Z:Copyright-Owner/></D:prop> > </D:remove> > </D:propertyupdate> > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 1639,1659c1643,1659 < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:multistatus xmlns:D="DAV:" < xmlns:Z="http://www.w3.com/standards/z39.50"> < <D:response> < <D:href>http://www.example.com/bar.html</D:href> < <D:propstat> < <D:prop><Z:Authors/></D:prop> < <D:status>HTTP/1.1 424 Failed Dependency</D:status> < </D:propstat> < <D:propstat> < <D:prop><Z:Copyright-Owner/></D:prop> < <D:status>HTTP/1.1 409 Conflict</D:status> < </D:propstat> < <D:responsedescription> Copyright Owner can not be deleted or < altered.</D:responsedescription> < </D:response> < </D:multistatus> --- > <?xml version="1.0" encoding="utf-8" ?> > <D:multistatus xmlns:D="DAV:" > xmlns:Z="http://www.w3.com/standards/z39.50"> > <D:response> > <D:href>http://www.example.com/bar.html</D:href> > <D:propstat> > <D:prop><Z:Authors/></D:prop> > <D:status>HTTP/1.1 424 Failed Dependency</D:status> > </D:propstat> > <D:propstat> > <D:prop><Z:Copyright-Owner/></D:prop> > <D:status>HTTP/1.1 409 Conflict</D:status> > </D:propstat> > <D:responsedescription>Copyright Owner can not be deleted or > altered.</D:responsedescription> > </D:response> > </D:multistatus> 1748d1747 < 1749a1749 > <preamble>>>Request</preamble> 1751,1759c1751,1758 < >>Request < < MKCOL /webdisc/xfiles/ HTTP/1.1 < Host: www.example.com < < >>Response < < HTTP/1.1 201 Created < --- > MKCOL /webdisc/xfiles/ HTTP/1.1 > Host: www.example.com > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 201 Created 1859a1859 > <preamble>>>Request</preamble> 1860a1861,1870 > DELETE /container/ HTTP/1.1 > Host: www.example.com > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 1862,1879c1872,1878 < >>Request < < DELETE /container/ HTTP/1.1 < Host: www.example.com < < >>Response < < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <d:multistatus xmlns:d="DAV:"> < <d:response> < <d:href>http://www.example.com/container/resource3</d:href> < <d:status>HTTP/1.1 423 Locked</d:status> < </d:response> < </d:multistatus> --- > <?xml version="1.0" encoding="utf-8" ?> > <d:multistatus xmlns:d="DAV:"> > <d:response> > <d:href>http://www.example.com/container/resource3</d:href> > <d:status>HTTP/1.1 423 Locked</d:status> > </d:response> > </d:multistatus> 2129c2128 < <section title="COPY Examples"> --- > <section title="Example - COPY with Overwrite"> 2138c2137 < <preamble>COPY with Overwrite</preamble> --- > <preamble>>>Request</preamble> 2140,2148c2139,2141 < >>Request < < COPY /~fielding/index.html HTTP/1.1 < Host: www.ics.uci.edu < Destination: http://www.ics.uci.edu/users/f/fielding/index.html < < >>Response < < HTTP/1.1 204 No Content --- > COPY /~fielding/index.html HTTP/1.1 > Host: www.ics.uci.edu > Destination: http://www.ics.uci.edu/users/f/fielding/index.html 2151c2144,2152 < --- > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 204 No Content > ]]></artwork> > </figure> > </section> > > <section title="Example - COPY with No Overwrite"> 2158d2158 < 2160c2160 < <preamble>COPY with No Overwrite</preamble> --- > <preamble>>>Request</preamble> 2161a2162,2174 > COPY /~fielding/index.html HTTP/1.1 > Host: www.ics.uci.edu > Destination: http://www.ics.uci.edu/users/f/fielding/index.html > Overwrite: F > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 412 Precondition Failed > ]]></artwork> > </figure> > </section> 2163,2172c2176,2183 < >>Request < < COPY /~fielding/index.html HTTP/1.1 < Host: www.ics.uci.edu < Destination: http://www.ics.uci.edu/users/f/fielding/index.html < Overwrite: F < < >>Response < < HTTP/1.1 412 Precondition Failed --- > <section title="Example - COPY of a Collection"> > <figure> > <preamble>>>Request</preamble> > <artwork><![CDATA[ > COPY /container/ HTTP/1.1 > Host: www.example.com > Destination: http://www.example.com/othercontainer/ > Depth: infinity 2175d2185 < 2177c2187 < <preamble>Example - COPY of a Collection</preamble> --- > <preamble>>>Response</preamble> 2179c2189,2191 < >>Request --- > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 2181,2186c2193 < COPY /container/ HTTP/1.1 < Host: www.example.com < Destination: http://www.example.com/othercontainer/ < Depth: infinity < < >>Response --- > <?xml version="1.0" encoding="utf-8" ?> 2188,2199c2195,2200 < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < < <d:multistatus xmlns:d="DAV:"> < <d:response> < <d:href>http://www.example.com/othercontainer/R2/</d:href> < <d:status>HTTP/1.1 423 Locked</d:status> < </d:response> < </d:multistatus> --- > <d:multistatus xmlns:d="DAV:"> > <d:response> > <d:href>http://www.example.com/othercontainer/R2/</d:href> > <d:status>HTTP/1.1 423 Locked</d:status> > </d:response> > </d:multistatus> 2202d2202 < 2381c2381 < <section title="Examples"> --- > <section title="Example - MOVE of a Non-Collection"> 2393c2393 < <preamble>MOVE of a Non-Collection</preamble> --- > <preamble>>>Request</preamble> 2395,2404c2395,2397 < >>Request < < MOVE /~fielding/index.html HTTP/1.1 < Host: www.ics.uci.edu < Destination: http://www.ics.uci.edu/users/f/fielding/index.html < < >>Response < < HTTP/1.1 201 Created < Location: http://www.ics.uci.edu/users/f/fielding/index.html --- > MOVE /~fielding/index.html HTTP/1.1 > Host: www.ics.uci.edu > Destination: http://www.ics.uci.edu/users/f/fielding/index.html 2407c2400,2410 < --- > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 201 Created > Location: http://www.ics.uci.edu/users/f/fielding/index.html > ]]></artwork> > </figure> > > </section> > > <section title="Example - MOVE of a Collection"> 2409c2412 < <preamble>MOVE of a Collection</preamble> --- > <preamble>>>Request</preamble> 2411,2421c2414,2427 < >>Request < < MOVE /container/ HTTP/1.1 < Host: www.example.com < Destination: http://www.example.com/othercontainer/ < Overwrite: F < If: (<urn:uuid:fe184f2e-6eec-41d0-c765-01adc56e6bb4>) < (<urn:uuid:e454f3f3-acdc-452a-56c7-00a5c91e4b77>) < < < >>Response --- > MOVE /container/ HTTP/1.1 > Host: www.example.com > Destination: http://www.example.com/othercontainer/ > Overwrite: F > If: (<urn:uuid:fe184f2e-6eec-41d0-c765-01adc56e6bb4>) > (<urn:uuid:e454f3f3-acdc-452a-56c7-00a5c91e4b77>) > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 2423,2433c2429,2435 < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <d:multistatus xmlns:d='DAV:'> < <d:response> < <d:href>http://www.example.com/othercontainer/C2/</d:href> < <d:status>HTTP/1.1 423 Locked</d:status> < </d:response> < </d:multistatus> --- > <?xml version="1.0" encoding="utf-8" ?> > <d:multistatus xmlns:d='DAV:'> > <d:response> > <d:href>http://www.example.com/othercontainer/C2/</d:href> > <d:status>HTTP/1.1 423 Locked</d:status> > </d:response> > </d:multistatus> 2435c2437,2438 < <postamble> --- > </figure> > <t> 2448,2449c2451 < </postamble> < </figure> --- > </t> 2568,2569c2570 < < <figure> --- > <texttable> 2571,2598c2572,2591 < < The table below describes the behavior that occurs when a lock < request is made on a resource. < </preamble> < <artwork> < < Current State Shared Lock Request Exclusive Lock Request < ---------------------------------------------------------------- < None True True < Shared Lock True False < Exclusive Lock False False* < < </artwork> < <postamble> < Legend: True = lock may be granted. False = lock MUST NOT be < granted. *=It is illegal for a principal to request the same lock < twice. < </postamble> < </figure> < < <t> < < The current lock state of a resource is given in the leftmost < column, and lock requests are listed in the first row. The < intersection of a row and column gives the result of a lock request. < For example, if a shared lock is held on a resource, and an < exclusive lock is requested, the table entry is "false", indicating < the lock must not be granted. --- > The table below describes the behavior that occurs when a lock > request is made on a resource. > </preamble> > <ttcol width="40%">Current lock state / Lock request</ttcol><ttcol>Shared Lock</ttcol><ttcol>Exclusive Lock</ttcol> > <c>None</c><c>True</c><c>True</c> > <c>Shared Lock</c><c>True</c><c>False</c> > <c>Exclusive Lock</c><c>False</c><c>False*</c> > <postamble> > Legend: True = lock may be granted. False = lock MUST NOT be > granted. *=It is illegal for a principal to request the same lock > twice. > </postamble> > </texttable> > <t> > The current lock state of a resource is given in the leftmost column, > and lock requests are listed in the first row. The intersection of a > row and column gives the result of a lock request. For example, if a > shared lock is held on a resource, and an exclusive lock is > requested, the table entry is "false", indicating the lock must not > be granted. 2634a2628 > <preamble>>>Request</preamble> 2636,2637d2629 < >>Request < 2656,2658c2648,2653 < < >>Response < --- > ]]> > </artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ 2683,2684c2678 < >http://example.com/workspace/webdav/proposal.doc< < /D:href> --- > >http://example.com/workspace/webdav/proposal.doc</D:href> 2710a2705 > <preamble>>>Request</preamble> 2712,2713d2706 < >>Request < 2722,2724c2715,2720 < < >>Response < --- > ]]> > </artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ 2737,2739c2733,2734 < <D:href> < http://www.ics.uci.edu/~ejw/contact.html < </D:href> --- > <D:href > >http://www.ics.uci.edu/~ejw/contact.html</D:href> 2743,2744c2738,2739 < <D:href>urn:uuid:e71d4fae-5dec-22d6-fea5-00a0c91e6be4< < /D:href> --- > <D:href > >urn:uuid:e71d4fae-5dec-22d6-fea5-00a0c91e6be4</D:href> 2747,2749c2742 < <D:href < >http://example.com/workspace/webdav/proposal.doc< < /D:href> --- > <D:href>/workspace/webdav/proposal.doc</D:href> 2756c2749,2750 < <postamble> --- > </figure> > <t> 2762,2763c2756 < </postamble> < </figure> --- > </t> 2767a2761,2785 > <preamble>>>Request</preamble> > <artwork><![CDATA[ > LOCK /webdav/ HTTP/1.1 > Host: example.com > Timeout: Infinite, Second-4100000000 > Depth: infinity > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx > Authorization: Digest username="ejw", > realm="ejw@example.com", nonce="...", > uri="/workspace/webdav/proposal.doc", > response="...", opaque="..." > > <?xml version="1.0" encoding="utf-8" ?> > <D:lockinfo xmlns:D="DAV:"> > <D:locktype><D:write/></D:locktype> > <D:lockscope><D:exclusive/></D:lockscope> > <D:owner> > <D:href>http://www.ics.uci.edu/~ejw/contact.html</D:href> > </D:owner> > </D:lockinfo> > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> 2769c2787,2789 < >>Request --- > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 2771,2813c2791,2805 < LOCK /webdav/ HTTP/1.1 < Host: example.com < Timeout: Infinite, Second-4100000000 < Depth: infinity < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < Authorization: Digest username="ejw", < realm="ejw@example.com", nonce="...", < uri="/workspace/webdav/proposal.doc", < response="...", opaque="..." < < <?xml version="1.0" encoding="utf-8" ?> < <D:lockinfo xmlns:D="DAV:"> < <D:locktype><D:write/></D:locktype> < <D:lockscope><D:exclusive/></D:lockscope> < <D:owner> < <D:href>http://www.ics.uci.edu/~ejw/contact.html</D:href> < </D:owner> < </D:lockinfo> < < >>Response < < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:multistatus xmlns:D="DAV:"> < <D:response> < <D:href>http://example.com/webdav/secret</D:href> < <D:status>HTTP/1.1 403 Forbidden</D:status> < </D:response> < <D:response> < <D:href>http://example.com/webdav/</D:href> < <D:propstat> < <D:prop><D:lockdiscovery/></D:prop> < <D:status>HTTP/1.1 424 Failed Dependency</D:status> < </D:propstat> < </D:response> < </D:multistatus> < < ]]> < </artwork> --- > <?xml version="1.0" encoding="utf-8" ?> > <D:multistatus xmlns:D="DAV:"> > <D:response> > <D:href>http://example.com/webdav/secret</D:href> > <D:status>HTTP/1.1 403 Forbidden</D:status> > </D:response> > <D:response> > <D:href>http://example.com/webdav/</D:href> > <D:propstat> > <D:prop><D:lockdiscovery/></D:prop> > <D:status>HTTP/1.1 424 Failed Dependency</D:status> > </D:propstat> > </D:response> > </D:multistatus> > ]]></artwork> 2887a2880 > <preamble>>>Request</preamble> 2889,2890d2881 < >>Request < 2898,2900c2889,2893 < < >>Response < --- > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ 2905d2897 < 2936d2927 < 3186a3178,3179 > > <section title="Example - Tagged List If header"> 3188d3180 < <preamble>Example - Tagged List If header</preamble> 3190,3197c3182,3189 < COPY /resource1 HTTP/1.1 < Host: www.example.com < Destination: http://www.example.com/resource2 < If: <http://www.example.com/resource1> < (<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2> < [W/"A weak ETag"]), (["strong ETag"]), < <http://www.bar.bar/random> < (["another strong ETag"]) --- > COPY /resource1 HTTP/1.1 > Host: www.example.com > Destination: http://www.example.com/resource2 > If: <http://www.example.com/resource1> > (<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2> > [W/"A weak ETag"]), (["strong ETag"]), > <http://www.bar.bar/random> > (["another strong ETag"]) 3215a3208 > </section> 3268,3269c3261,3263 < <figure> < <preamble>Example - Matching lock tokens with collection locks</preamble> --- > > <section title="Example - Matching lock tokens with collection locks"> > <figure> 3271,3274c3265,3268 < DELETE /specs/rfc2518.txt HTTP/1.1 < Host: www.example.com < If: <http://www.example.com/specs/> < (<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>) --- > DELETE /specs/rfc2518.txt HTTP/1.1 > Host: www.example.com > If: <http://www.example.com/specs/> > (<urn:uuid:181d4fae-7d8c-11d0-a765-00a0c91e6bf2>) 3276c3270,3272 < <postamble>For this example, the lock token must be compared to the --- > </figure> > <t> > For this example, the lock token must be compared to the 3285,3287c3281,3283 < in the If header could also succeed.</postamble> < </figure> < --- > in the If header could also succeed. > </t> > </section> 4419a4416 > <preamble>>>Request</preamble> 4420a4418,4421 > PROPFIND /container/ HTTP/1.1 > Host: www.example.com > Content-Length: xxxx > Content-Type: text/xml; charset="utf-8" 4422c4423,4434 < >>Request --- > <?xml version="1.0" encoding="utf-8" ?> > <D:propfind xmlns:D='DAV:'> > <D:prop><D:lockdiscovery/></D:prop> > </D:propfind> > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx 4424,4466c4436,4462 < PROPFIND /container/ HTTP/1.1 < Host: www.example.com < Content-Length: xxxx < Content-Type: text/xml; charset="utf-8" < < <?xml version="1.0" encoding="utf-8" ?> < <D:propfind xmlns:D='DAV:'> < <D:prop><D:lockdiscovery/></D:prop> < </D:propfind> < < >>Response < < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:multistatus xmlns:D='DAV:'> < <D:response> < <D:href>http://www.example.com/container/</D:href> < <D:propstat> < <D:prop> < <D:lockdiscovery> < <D:activelock> < <D:locktype><D:write/></D:locktype> < <D:lockscope><D:exclusive/></D:lockscope> < <D:depth>0</D:depth> < <D:owner>Jane Smith</D:owner> < <D:timeout>Infinite</D:timeout> < <D:locktoken> < <D:href < >urn:uuid:f81de2ad-7f3d-a1b2-4f3c-00a0c91a9d76</D:href> < </D:locktoken> < <D:lockroot> < <D:href>http://www.example.com/container/</D:href> < </D:lockroot> < </D:activelock> < </D:lockdiscovery> < </D:prop> < <D:status>HTTP/1.1 200 OK</D:status> < </D:propstat> < </D:response> < </D:multistatus> --- > <?xml version="1.0" encoding="utf-8" ?> > <D:multistatus xmlns:D='DAV:'> > <D:response> > <D:href>http://www.example.com/container/</D:href> > <D:propstat> > <D:prop> > <D:lockdiscovery> > <D:activelock> > <D:locktype><D:write/></D:locktype> > <D:lockscope><D:exclusive/></D:lockscope> > <D:depth>0</D:depth> > <D:owner>Jane Smith</D:owner> > <D:timeout>Infinite</D:timeout> > <D:locktoken> > <D:href > >urn:uuid:f81de2ad-7f3d-a1b2-4f3c-00a0c91a9d76</D:href> > </D:locktoken> > <D:lockroot> > <D:href>http://www.example.com/container/</D:href> > </D:lockroot> > </D:activelock> > </D:lockdiscovery> > </D:prop> > <D:status>HTTP/1.1 200 OK</D:status> > </D:propstat> > </D:response> > </D:multistatus> 4468c4464,4465 < <postamble> --- > </figure> > <t> 4471,4473c4468 < </postamble> < </figure> < --- > </t> 4539a4535 > <preamble>>>Request</preamble> 4541c4537,4540 < >>Request --- > PROPFIND /container/ HTTP/1.1 > Host: www.example.com > Content-Length: xxxx > Content-Type: text/xml; charset="utf-8" 4543,4579c4542,4575 < PROPFIND /container/ HTTP/1.1 < Host: www.example.com < Content-Length: xxxx < Content-Type: text/xml; charset="utf-8" < < <?xml version="1.0" encoding="utf-8" ?> < <D:propfind xmlns:D="DAV:"> < <D:prop><D:supportedlock/></D:prop> < </D:propfind> < < >>Response < < HTTP/1.1 207 Multi-Status < Content-Type: text/xml; charset="utf-8" < Content-Length: xxxx < < <?xml version="1.0" encoding="utf-8" ?> < <D:multistatus xmlns:D="DAV:"> < <D:response> < <D:href>http://www.example.com/container/</D:href> < <D:propstat> < <D:prop> < <D:supportedlock> < <D:lockentry> < <D:lockscope><D:exclusive/></D:lockscope> < <D:locktype><D:write/></D:locktype> < </D:lockentry> < <D:lockentry> < <D:lockscope><D:shared/></D:lockscope> < <D:locktype><D:write/></D:locktype> < </D:lockentry> < </D:supportedlock> < </D:prop> < <D:status>HTTP/1.1 200 OK</D:status> < </D:propstat> < </D:response> < </D:multistatus> --- > <?xml version="1.0" encoding="utf-8" ?> > <D:propfind xmlns:D="DAV:"> > <D:prop><D:supportedlock/></D:prop> > </D:propfind> > ]]></artwork> > </figure> > <figure> > <preamble>>>Response</preamble> > <artwork><![CDATA[ > HTTP/1.1 207 Multi-Status > Content-Type: text/xml; charset="utf-8" > Content-Length: xxxx > > <?xml version="1.0" encoding="utf-8" ?> > <D:multistatus xmlns:D="DAV:"> > <D:response> > <D:href>http://www.example.com/container/</D:href> > <D:propstat> > <D:prop> > <D:supportedlock> > <D:lockentry> > <D:lockscope><D:exclusive/></D:lockscope> > <D:locktype><D:write/></D:locktype> > </D:lockentry> > <D:lockentry> > <D:lockscope><D:shared/></D:lockscope> > <D:locktype><D:write/></D:locktype> > </D:lockentry> > </D:supportedlock> > </D:prop> > <D:status>HTTP/1.1 200 OK</D:status> > </D:propstat> > </D:response> > </D:multistatus> 5390,5391c5386,5387 < xmlns:E="http://www.example.com/standards/props/"> < <E:expired-props/> --- > xmlns:E="http://www.example.com/standards/props/"> > <E:expired-props/> 5421d5416 < 5425,5426c5420,5421 < <D:propname/> < <E:leave-out>*boss*</E:leave-out> --- > <D:propname/> > <E:leave-out>*boss*</E:leave-out>
Attachments
- text/xml attachment: draft-ietf-webdav-rfc2518bis-latest.xml
Received on Tuesday, 22 November 2005 14:07:25 UTC