Commit d1ee7b14 authored by Hanno Schlichting's avatar Hanno Schlichting

If we are going in circles without getting the error_message just raise

parent 1f8da645
...@@ -18,6 +18,7 @@ from AccessControl.SecurityManagement import getSecurityManager ...@@ -18,6 +18,7 @@ from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import noSecurityManager from AccessControl.SecurityManagement import noSecurityManager
from Acquisition import aq_acquire from Acquisition import aq_acquire
from Acquisition import aq_base
from Acquisition import aq_inner from Acquisition import aq_inner
from Acquisition import aq_parent from Acquisition import aq_parent
from App.config import getConfiguration from App.config import getConfiguration
...@@ -239,7 +240,9 @@ class ZPublisherExceptionHook: ...@@ -239,7 +240,9 @@ class ZPublisherExceptionHook:
if getattr(client, self.error_message, None) is not None: if getattr(client, self.error_message, None) is not None:
break break
client = aq_parent(client) client = aq_parent(client)
if client is None: # If we are going in circles without getting the error_message
# just raise
if client is None or aq_base(client) is aq_base(published):
raise t, v, traceback raise t, v, traceback
if REQUEST.get('AUTHENTICATED_USER', None) is None: if REQUEST.get('AUTHENTICATED_USER', None) is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment