You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Pill, Juergen" <Ju...@softwareag.com> on 2001/05/17 19:35:55 UTC

server response codes for move/copy

Hello,

the Slide server has a problem in returning response codes, if e.g. a
resource is copied to an existing resource, but the target resource does
already exist and the overwrite flag is not set. In this case the right
response code is generated, but it is packed into a 207 XML structure. The
standard requires to deliever for non-collection resources the response code
directly, and even for collections to deliever some of the response codes
directly.

Looking at the implementation both copy and move have a method
generateErrorMessage, which creates the packed response code. If CopyMethod
could ask for a given URI, if this URI is a collection, the decision to
unpack would be possible. An other possibility would be to pack into the
MacroException the knowledge if the resource is a collection or not.

Any ideas/opinions?

Best regards

Juergen