﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
16822	HTTPRequest::raw_post_data broken for tests	Whitney	nobody	"The `HTTPRequest::raw_post_data` method does not work for the test suite any more. It seems that the exception is caused due to the changes in django.http (`__init__.py`) during processing of a multipart request. Previously it assigned `self._raw_post_data`, and not it does not. The following change fixes the problem, but I don't know if it's exactly what you'd want to do:


{{{
Index: django/http/__init__.py
===================================================================
--- django/http/__init__.py	(revision 16821)
+++ django/http/__init__.py	(working copy)
@@ -272,6 +272,7 @@
                 # Use already read data
                 data = StringIO(self._raw_post_data)
             else:
+                self._raw_post_data = ''
                 data = self
             try:
                 self._post, self._files = self.parse_file_upload(self.META, data)
}}}


I would have assigned this to version 1.3.1, but there is no choice for that."	Bug	closed	HTTP handling		Normal	fixed		james@…	Accepted	1	0	0	0	0	0
