TestBrowser Referer: header set to 'localhost'
Bug #98437 reported by
Stuart Bishop
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Won't Fix
|
Low
|
Unassigned | ||
Zope 2 |
Won't Fix
|
Undecided
|
Unassigned | ||
Zope 3 |
Won't Fix
|
Medium
|
Unassigned | ||
zope.app.testing |
Fix Committed
|
Medium
|
Christian Theune | ||
zope.testbrowser |
Fix Released
|
Medium
|
Tres Seaver |
Bug Description
Tests using TestBrowser find that the HTTP_REFERER is set to the string 'localhost'. This makes it impossible to correctly test code that behaves differently when no Referer: header is found.
Changed in launchpad: | |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: tech-debt |
Changed in zope3: | |
status: | New → Won't Fix |
Changed in zope.testbrowser: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: bugday20100424 |
Changed in zope.testbrowser: | |
assignee: | nobody → Christian Theune (ct-gocept) |
Changed in zope.app.testing: | |
importance: | Undecided → Medium |
assignee: | nobody → Christian Theune (ct-gocept) |
Changed in zope.app.testing: | |
status: | New → In Progress |
Changed in zope.testbrowser: | |
status: | Confirmed → In Progress |
Changed in zope.testbrowser: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
status: | Triaged → Won't Fix |
To post a comment you must log in.
Hi,
thanks for your report. We're sorry that it took so long to reply.
I've tried to reproduce the behavior but wasn't successful. In my case the request that is created by testbrowser didn't allow access to 'getHeader' at all.
Can you create a test case that demonstrates the behavior? If you can't get a test case, I'd be happy with explicit reproduction steps too.