Comment 23 for bug 332061

Revision history for this message
Uli Fouquet (uli-gnufix) wrote :

Thanks to Martijn we made some real progress on that issue during Europython.

The solution is now targeted in zope.publisher, blessed by Martijn and Christian Theune and works like this:

We introduce a new interface 'IReRaiseException' in zope.publisher, that certain exception types can be adapted to.

The adapter should return 'True' or 'False' upon being called depending on whether we want this exception type to reach any middleware debugger on publishing or not.

The changes are now introduced to the zope.publisher trunk and then backported to the zope.publisher version currently used by Grok. Afterwards we will introduce an appropriate adapter into Grok that will deny reraising Unauthorized exceptions so that people can still login with basic-auth when using the WSGI debugger middleware.