Ticket #1890 (new defect)

Opened 3 months ago

Last modified 4 weeks ago

TG2 request.body exhausted under unit tests

Reported by: cleverdevil Assigned to: anonymous
Priority: normal Milestone: 1.9.7a5
Component: TurboGears Version: trunk
Severity: normal Keywords:
Cc:

Description

When running functional tests under TurboGears 2.0 preview release, and performing a POST, the request.body is always empty. It seems that something is reading/exhausting the environwsgi.input? at some stage in the pipeline, causing request.body to be empty. The code is confirmed as working outside of the test environment, but the test fails because request.body is empty.

A few notes: this POST is occurring on a sub-controller that is taking advantage of TG2's new lookup capabilities.

Change History

09/12/08 00:36:54 changed by mramm

  • milestone set to 1.9.7a5.