Comment 3 for bug 332061

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

Thanks for the comment, Sylvain!

Rethinking the problem it looks strange to me, that the two use-cases of authentication behave so different.

In the basic-auth case it looks to me that the raised exception is something like a signal to some 'plugin' or whatever. I vaguely remember some statement from Christian Theune, that things couldn't be handled differently (say: without raising an exception) with basic-auth, but I can't remember, what the reason was, actually. Wouldn't it be cleaner when also basic-auth authentication would be triggered without a raised exception?

So, before telling paster how to behave more subtle with exceptions I would like to see, whether it is not possible to tackle this problem inside the Zope publishing machinery. An advanced paster-side exception-handling could be useful anyway as you pointed out for other usecases.

What do you think?