[ZCM] [ZC] 786/ 1 Request "Session gets munged"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Fri, 31 Jan 2003 16:52:49 -0500


Issue #786 Update (Request) "Session gets munged"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/786

==============================================================
= Request - Entry #1 by Anonymous User on Jan 31, 2003 4:52 pm

Publish.py does an abort(freeme=1) upon catching an exception.  It then calls the registered error handlers (e.g., resolves to standard_error_message).  if the SESSION is referenced (even read only) within this error handler, there is a high probability that the session data structures (index[] and data[]) will get messed up.

This seems to be a direct result of traversing persistent objects outside the context of any Transaction.

I feel that Publish.py should only abort(freeme=1) AFTER any error handler is called.  The error handler is would then be free to commit() if it feels it has fixed the problem, or do nothing to let Zope abort().
==============================================================