#111 closed defect (fixed)

command-line: whoops, put doesn't work

Reported by: zooko Owned by: zooko
Priority: blocker Milestone: 0.5.0
Component: unknown Version: 0.4.0
Keywords: Cc:
Launchpad Bug:

Description

I just noticed that the files I've been putting are coming out empty.

Change History (1)

comment:1 Changed at 2007-08-17T22:05:48Z by zooko

  • Resolution set to fixed
  • Status changed from new to closed

Okay, so it turns out that our web server doesn't accept a header and body like this:

PUT /vdrive/global/my-webport-file-2 HTTP/1.1
Connection: close
Hostname: localhost

9999

and figure out that the body consists of everything that came between the header and the half-close of the connnection. Instead, it thinks that the body was of 0 length. On the other hand, this works correctly:

PUT /vdrive/global/my-webport-file-2 HTTP/1.1
Connection: close
Content-Length: 5
Hostname: localhost

9999

So for the v0.5 release, I'm just going to require that the file being uploaded is a local file and not stdin. :-(

Fixed by e997b220688e2baa. Opening a new ticket for v0.6. Note that the tahoe_put-web2ish.py script probably already does this right...

Note: See TracTickets for help on using tickets.