W3C home > Mailing lists > Public > ietf-dav-versioning@w3.org > January to March 2006

Re: Validation of request entities

From: Werner Donné <werner.donne@re.be>
Date: Wed, 22 Mar 2006 11:07:12 +0100
Message-ID: <442121D0.3020405@re.be>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: ietf-dav-versioning@w3.org

Julian Reschke wrote:
> Werner Donné wrote:
>> Hi,
>> In a versioning repository it may be required to validate the
>> request entity before updating a version. This can be as simple
>> as structural validation or application-specific validation
>> rules may be implemented.
>> When validation errors are found it is not sufficient to just
>> return a status-code. In order for the user to learn where
>> the problems exactly are, the repository should be able to
>> return the request entity with annotations about the errors.
>> A possible solution is to give the POST method similar additional
>> semantics as the PUT method. Its response entity could contain
>> the annotated document.
> Why not do it with the PUT response body?

Because I don't think the PUT method is supposed to have a response
body. RFC 2616 says nothing about a response body in section 9.6,
while for methods that can have one it explains the conditions for

> Best regards, Julian


Werner Donné  --  Re
Engelbeekstraat 8
B-3300 Tienen
tel: (+32) 486 425803	e-mail: werner.donne@re.be
Received on Wednesday, 22 March 2006 10:06:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:55:48 UTC