End request handling lost when 'abort' raised an exception
Bug #277018 reported by
Dieter Maurer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
"ZPublisher.
if transactions_
As "abort" can raise an exception, the "endInteraction" is not called in such cases (I am unsure whether this is fatal).
I suggest to use instead code of the form:
# Note: 'abort's can fail. Nevertheless, we want end request handling
try:
if transactions_
To post a comment you must log in.
This is fixed in at least Zope 2.12, where the try/finally has been introduced in combination with the extra PubFailure event.