log("doPut " + uri);
if ("/".equals(uri.getPath())) {
log("create bucket");
bucket = true;
} else {
Entry e = new Entry(key(uri));
e.setLastModified(new Date());
e.setSize(req.getContentLength());
e.setOwner(new Owner("id", "name"));
ByteArrayOutputStream os = new ByteArrayOutputStream();
ServletInputStream is = req.getInputStream();
byte b[] = new byte[128];
while (true) {
int len = is.read(b);