command-line: whoops, put doesn't work #111

Closed
opened 2007-08-17 21:32:13 +00:00 by zooko · 1 comment
zooko commented 2007-08-17 21:32:13 +00:00
Owner

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

I just noticed that the files I've been putting are coming out empty.
tahoe-lafs added the
unknown
blocker
defect
0.4.0
labels 2007-08-17 21:32:13 +00:00
tahoe-lafs added this to the 0.5.0 milestone 2007-08-17 21:32:13 +00:00
zooko commented 2007-08-17 22:05:48 +00:00
Author
Owner

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 changeset:e997b220688e2baa. Opening a new ticket for v0.6. Note that the tahoe_put-web2ish.py script probably already does this right...

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 changeset:e997b220688e2baa. Opening a new ticket for v0.6. Note that the tahoe_put-web2ish.py script probably already does this right...
tahoe-lafs added the
fixed
label 2007-08-17 22:05:48 +00:00
zooko closed this issue 2007-08-17 22:05:48 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#111
No description provided.