Well, to be exact :-)

Request

REPORT /webdav/BCS/Projekte/Dok2.doc HTTP/1.1
Host: localhost

<A:version-tree xmlns:A="DAV:"/>


Response (the /webdav/BCS/Projekte/Dok2.doc resource is not version controlled)


HTTP/1.1 409 Conflict
Date: Mon, 17 Jan 2005 14:03:15 GMT

<D:error xmlns:D="DAV:"><D:supported-report/></D:error>

Right?

Thanks, Stefan


Julian Reschke wrote:

Stefan L�tzkendorf wrote:

Hello Folks,
I have a question regarding WebDAV specifications.

Question: what is the correct response to an request of an unsupported
report?

E.g. how should we answer to a "version-tree report" request on a
resource that is not version controlled?

Currently slide returns some thing like this:

HTTP/1.1 207 Multi-Status
Transfer-Encoding: chunked
Date: Mon, 17 Jan 2005 14:03:15 GMT
Server: Apache-Coyote/1.1

<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:">
    <D:response>
      <D:href>/webdav/BCS/Projekte/Dok2.doc</D:href>
        <D:propstat>
            <D:status>HTTP/1.1 403 Forbidden</D:status>
            <D:responsedescription>
                <D:error>
                    <D:supported-report />
                </D:error>
            </D:responsedescription>
        </D:propstat>
    </D:response>
</D:multistatus>

This looks weird, because we return a <propstat> element that does not
contains any <prop> element.


I think RFC3253 is sufficiently clear on this. If it's the resource at the request URI that doesn't support the report, it would be:

HTTP/1.1 40x
....

<error xmlns="DAV:"><supported-report/>></error>


(where 40x would be 409 if you can change the state of the resource so that it supports the report, oe 403 otherwise).


I think a 412 (Precondition Failed) response is more appropriate,
because supported-report is a statet precondition of REPORT in RFC3253.


Nope: <http://greenbytes.de/tech/webdav/rfc3253.html#method.preconditions.and.postconditions>.


So i'd like to response as the following:

HTTP/1.1 412 Precondition Failed
Transfer-Encoding: chunked
Date: Mon, 17 Jan 2005 14:03:15 GMT
Server: Apache-Coyote/1.1

<D:error>
  <D:supported-report />
</D:error>


Any thoughts? What is the most conformant form?


Luckily, there's only one conformant form (mod. XML syntax) :-)

Best regards, Julian


-- Stefan L�tzkendorf -- [EMAIL PROTECTED]


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to