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 a 412 (Precondition Failed) response is more appropriate,
because supported-report is a statet precondition of REPORT in RFC3253.
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?

Thanks in advance,
Stefan



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



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



Reply via email to