HTTPRequest.resolve_url clears site thread global
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
High
|
Martijn Pieters | ||
2.10 |
Fix Released
|
High
|
Martijn Pieters | ||
2.11 |
Fix Released
|
High
|
Martijn Pieters | ||
2.12 |
Fix Released
|
High
|
Martijn Pieters | ||
2.13 |
Fix Released
|
High
|
Martijn Pieters |
Bug Description
HTTPRequest.
For example, ZCatalog uses request.resolve_url to find any objects that cannot be found through regular path traversal (see refreshCatalog, manage_
The .resolve_url method should be altered to either not call .close() (a simple "del req" should suffice) or a new .cleanup() method should be added to do all cleanup work, which .resolve_url and .close then call, with only the IEndRequestEvent emit remaining in .close.
Changed in zope2: | |
status: | In Progress → Fix Committed |
Patch against trunk; I'll see about backporting this to 2.12, 2.11 and 2.10 as it is quite critical to any large site that wants to do a full reindex to get rid of stale entries.