Code

Opened 9 years ago

Closed 9 years ago

#923 closed defect (fixed)

[patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ

Reported by: michael.mcewan@… Owned by: adrian
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

django.core.handlers.wsgi._get_get does not appear to cater for circumstances when there is no QUERY_STRING. The WSGI spec says that the QUERY_STRING environment variable may be absent. I'm attaching a patch which prevents a 'KeyError' being raised when there is no QUERY_STRING.

Attachments (1)

wsgi.diff (699 bytes) - added by michael.mcewan@… 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by michael.mcewan@…

comment:1 Changed 9 years ago by michael.mcewan@…

  • Summary changed from 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ to [patch] 'KeyError' in wsgi.py when there is no 'QUERY_STRING' in os.environ

comment:2 Changed 9 years ago by adrian

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

(In [1442]) Fixed #923 -- Made WSGI handler tolerant of no QUERY_STRING in os.environ. Thanks, michael.mcewan

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.