[Zope3-dev] Catching Unauthorized

Sidnei da Silva sidnei@x3ng.com
Sat, 29 Mar 2003 10:29:26 -0300


Hi, its me again.

While working on MKCOL yesterday, I found out that currently Zope isnt 
sending basic auth request when raising unauthorized. I traced the 
problem down to zope/app/publication/http.py. If I catch unauthorized on 
HTTPPublication, where we are doing "ob - getattr(ob, request.method)" and
"return request.unauthorized('basic realm="Zope"')" then it works just 
fine.

My questions are: Is this intentional? Why when I use browser to go to 
/manage I get basic auth? Should I commit this fix?

~dc