Commit fd19c653 authored by Ricki Hirner's avatar Ricki Hirner

Handle 207 for DELETE

parent 0e9522bb
......@@ -217,6 +217,13 @@ public class DavResource {
builder.header("If-Match", StringUtils.asQuotedString(ifMatchETag));
Response response = httpClient.newCall(builder.build()).execute();
checkStatus(response);
if (response.code() == 207) {
/* If an error occurs deleting a member resource (a resource other than
the resource identified in the Request-URI), then the response can be
a 207 (Multi-Status). […] (RFC 4918 9.6.1. DELETE for Collections) */
throw new HttpException(response);
}
}
/**
......
......@@ -13,8 +13,9 @@ public class PropertyRegistry {
static final PropertyRegistry DEFAULT = new PropertyRegistry();
private PropertyRegistry() {
Constants.log.debug("Registering DAV property factories:");
for (PropertyFactory factory : ServiceLoader.load(PropertyFactory.class)) {
Constants.log.debug("Registering DAV property factory for " + factory.getName());
Constants.log.debug("Registering property factory for " + factory.getName());
register(factory);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment