public Response updateImage(@PathParam("id") String id, File content) throws CloudException, IOException {
if (content != null && content.length() != 0) {
throw new UnsupportedOperationException();
}
ImageData image = findImage(id);
if (image == null) {
throw new WebApplicationException(Status.NOT_FOUND);
}
// TODO: Some
// -H 'x-image-meta-protected: True'
// -H 'x-glance-registry-purge-props: false'
Map<String, String> metadata = extractHeaders();
image = imageService.updateImage(getProject(), image.getId(), metadata);
// ResponseBuilder response = Response.ok();
// setHttpHeaders(image, response);
// return response.build();