Ticket #441 (closed defect: fixed)

Opened 18 months ago

Last modified 17 months ago

regression: webtest 1.2.1 breaks cookie set (with redirect)

Reported by: jccooper Owned by: ianb
Priority: high Milestone:
Component: webtest Version: released-version
Severity: blocker Keywords:
Cc:

Description

Situation: testing login form submit; it sets an auth cookie and redirects to some other page. This fails in webtest 1.2.1, but works on downgrade to 1.2.

See, for example:  http://stackoverflow.com/questions/2731907/unit-testing-authorization-in-a-pylons-app-fails-cookies-arent-been-correctly-s

(This is not me, but is the exact same situation.)

And I'm not entirely sure it's properly setting cookies (or at least, this one) at all; I did a quick test with 1.2.1 and no redirect, and it didn't get set right either.

The set-cookie header I'm working with:

Set-Cookie: _auth=1282172545.0+agpib3R0bGVtYXJrcg0LEgdBcHBVc2VyGAEM-38bf73f14ffacad56dbb2433b6ac35927fade09e; expires=Wed, 18-Aug-2010 23:02:25 GMT

Change History

Changed 17 months ago by jccooper

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

Works again with 1.2.2. Perhaps it's the "Revert change to cookies that would add " around cookie values." change? Maybe "Fix sending in webob.Request (or webtest.TestRequest?) objects."?

Anyway, it's good now, so I'll close.

Note: See TracTickets for help on using tickets.