if (setProperties.isEmpty() && removeProperties.isEmpty()) {
response.sendError(DavServletResponse.SC_BAD_REQUEST);
return;
}
MultiStatus ms = new MultiStatus();
try {
MultiStatusResponse msr = resource.alterProperties(setProperties, removeProperties);
ms.addResponse(msr);
} catch (DavException e) {
/* NOTE: known bug with litmus, which expects the exception (e.g. 423)
to the set instead of the MultiStatus Code. RFC 2518 explicitely
expects the errors to be included in the multistatus.
Remove the catch if this turns out to be an problem with clients
in general. */
ms.addResourceStatus(resource, e.getErrorCode(), DEPTH_0);
}
response.sendMultiStatus(ms);
}