Skip to content
Tcl Source Code History Of Ticket 2715421
Login

History Of Ticket 2715421

Artifacts Associated With Ticket 2715421

  1. Ticket change [c970518f02] (rid 122284) by ajpasadyn on 2009-03-26 20:59:22:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      It appears that when sending a POST, a newline character is being appended to the end of the data.  The body is then one byte longer than the content-length in the header, I have a web server that's complaining about it.  It appears that commenting out the offending puts statement works for us, but since it looks like that was deliberately done maybe there is something else out there that expects it?
      
    4. foundin initialized to: "obsolete: 8.5.6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "ajpasadyn"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to: "POST appending a newline character"
    12. type initialized to: "Bug"
  2. Ticket change [9b8ea5a01e] (rid 111149) by dkf on 2009-03-27 06:32:39:

    1. priority changed to: "8"
  3. Ticket change [66bcec06c4] (rid 102772) by ferrieux on 2009-03-27 06:58:23:

    1. icomment:
      Jeff, this 'puts $sock ""' line was added by you on line 885 of version 1.66. It is part of a big set of changes, but locally it stands rather alone (apart from var renaming). The commit log doesn't mention it. What was the intention ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  4. Ticket change [1b3c776bbc] (rid 123113) by hobbs on 2009-03-27 07:18:40:

    1. assignee changed to: "patthoyts"
    2. icomment:
      You are correct that the [puts $sock ""] (line 886 of 8.5-head and 905 of 8.6-head) went in at that point.  It was part of a larger chunked encoding handling patch.  I cannot justify clearly why it was added from review.  I am deferring to Pat to comment on whether this last newline was in any way correct for chunked transfers (something he's done more with), or simply an errant bit of code in the larger patch.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. username: "hobbs"
  5. Ticket change [481e4ffe8c] (rid 99830) by ferrieux on 2009-03-27 14:34:53:

    1. icomment:
      Oh I see, it might be the remnant of an attempt to support Chunked transfer upstream, the empty line being the current chunk's trailer (in the POST body). However, it seems that currently this support is only for downstream. Moreover, RFC2616 says that chunk headres and trailers are all based on CRLFs, not LFs, while at this spot we are in [-translation binary]. So it would be an invalid trailer anyway.
      Pat, any other consideration before removing that line ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  6. Ticket change [839dbf1410] (rid 117415) by patthoyts on 2009-03-27 23:36:30:

    1. icomment:
      The history for the http1.1 changes is in tclvfs/http as that is where this was done. Jeff ported most of it over in one lump into the core at some point however it looks to me like this particular change was merged into the tclvfs version from the core version by Jeff.
      I never made any attempt to provide chunked support for POST however - afaik we only support chunked for reading. I think it more likely to be something to force successful upload of files to some server or something similar. In the absence of sensible comments and/or tests it should conform to the rfc.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  7. Ticket change [83fd9b64e2] (rid 117475) by ferrieux on 2009-03-28 00:09:25:

    1. icomment:
      So let's remove that line. It violates the RFC by lying on the Content-Length by one for no reason.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  8. Ticket change [7f873cffa6] (rid 97574) by patthoyts on 2009-04-19 23:27:03:

    1. icomment:
      this has missed 8.5.7 but I will apply this fix to 8.5-branch and HEAD. I've got tests added for the HEAD branch to check for excess bytes being POSTed now.
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  9. Ticket change [f66011c394] (rid 130294) by patthoyts on 2009-04-19 23:27:04:

    1. closedate changed to: "2009-04-19T16:27:04"
    2. closer changed to: "patthoyts"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "patthoyts"