Opened 5 years ago

Closed 5 years ago

#14239 closed (wontfix)

Form input button embedded in <a /> crashes Django server

Reported by: leeezly Owned by: nobody
Component: HTTP handling Version: 1.2
Severity: Keywords: input button firefox
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I am running Ubuntu Lucid and got the default Django project setup without any apps included, created from Eclipse/Pydev. This only happens with Firefox but I reckon the problem is on the Django side, managing the HTTP requests, even though Firefox seems to send a double GET with the following setup.

With the Pydev(1.6.2) debug server running in Eclipse, I constantly get this bug. With the server running from terminal, I get the bug only once at the beginning.

The bug happens after pushing the input button (<input type="button">) in the browser.
   def view(request):
      return HttpResponse('<html><body><a href="/"><input type="button"></a></body></html>')

   urlpatterns = patterns('',
      (r'^/?$', 'urls.view'),


Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/django/core/servers/", line 281, in run
  File "/usr/local/lib/python2.6/dist-packages/django/core/servers/", line 321, in finish_response
  File "/usr/local/lib/python2.6/dist-packages/django/core/servers/", line 400, in write
  File "/usr/local/lib/python2.6/dist-packages/django/core/servers/", line 464, in send_headers
  File "/usr/local/lib/python2.6/dist-packages/django/core/servers/", line 382, in send_preamble
    'Date: %s\r\n' % http_date()
  File "/usr/lib/python2.6/", line 300, in write
  File "/usr/lib/python2.6/", line 286, in flush
error: [Errno 32] Broken pipe

Change History (1)

comment:1 Changed 5 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed
  1. Only that request is failing, the server is not "crashing". This issue is wontfixed already in #4444
  1. Don't do that.
Note: See TracTickets for help on using tickets.
Back to Top