Django

Code

Ticket #3496 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

WSGI handler dies on a form containing only empty checkboxes

Reported by: mikko@redinnovation.com Assigned to: nobody
Milestone: Component: Core framework
Version: SVN Keywords: wsgi checkbox post request zero
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

WSGI handler hangs when submitting a form containing only empty checkboxes. Because checkboxes are unchecked, HTTP POST request has zero content-length in this case. This zero is passed forward to a socket read function which never returns.

I have attached a patch which modifies WSGI to propeply deal with this case.

Cheers, Mikko Ohtamaa Oulu, Finland

Attachments

wsgi_patch.diff (1.2 kB) - added by mikko@redinnovation.com on 02/14/07 03:08:30.
Fixes empty checkbox bug in WSGI handler
wsgi_patch2.diff (1.2 kB) - added by cephelo@gmail.com on 02/14/07 07:48:00.
Patch that applies cleanly against trunk

Change History

02/14/07 03:08:30 changed by mikko@redinnovation.com

  • attachment wsgi_patch.diff added.

Fixes empty checkbox bug in WSGI handler

02/14/07 07:48:00 changed by cephelo@gmail.com

  • attachment wsgi_patch2.diff added.

Patch that applies cleanly against trunk

02/14/07 07:48:57 changed by cephelo@gmail.com

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

See also: #3089 (has no patch).

02/19/07 14:17:43 changed by SmileyChris

Is this in any way related to #2924 (supposedly fixed in [4144])?

02/21/07 14:48:57 changed by Michael Radziej <mir@noris.de>

#3089 marked as duplicate of this ticket (tentatively ;-)

09/14/07 12:18:31 changed by anonymous

  • owner changed from nobody to anonymous.
  • status changed from new to assigned.

09/14/07 12:22:09 changed by anonymous

  • owner changed from anonymous to nobody.
  • status changed from assigned to new.

10/21/07 18:52:08 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [6592]) Fixed #3496 -- Handle the case of missing (and hence '0') Content-Length header in a POST to the wsgi handler. Based on a patch from Mikko Ohtamaa.


Add/Change #3496 (WSGI handler dies on a form containing only empty checkboxes)




Change Properties
Action