Finally, I found where HTTPBasicAuthentication is triggered. It is in:<br><br> /home/simon/.buildout/eggs/zope.app.wsgi-3.5.2-py2.5.egg/zope/app/wsgi/__init__.py(57)__call__()<br>-> request = publish(request, handle_errors=handle_errors)<br>
/home/simon/.buildout/eggs/zope.publisher-3.8.0-py2.5.egg/zope/publisher/publish.py(142)publish()<br>-> obj, request, sys.exc_info(), True)<br> /home/simon/.buildout/eggs/zope.app.publication-3.7.0-py2.5.egg/zope/app/publication/zopepublication.py(336)handleException()<br>
-> body = mapply(view, (), request)<br> /home/simon/.buildout/eggs/zope.publisher-3.8.0-py2.5.egg/zope/publisher/publish.py(108)mapply()<br>-> return debug_call(obj, args)<br> /home/simon/.buildout/eggs/zope.publisher-3.8.0-py2.5.egg/zope/publisher/publish.py(114)debug_call()<br>
-> return obj(*args)<br><b>> /home/simon/.buildout/eggs/zope.app.http-3.6.0-py2.5.egg/zope/app/http/exception/unauthorized.py(32)__call__()<br>-> self.request.unauthorized('basic realm="Zope"')<br>
</b><br><br>I wonder how zope gets into this piece of code and don't use ./zope.app.exception-3.5.0-py2.5.egg/zope/app/exception/browser/unauthorized.py<br><br>Thanks for your help<br>Simon<br><br><br><br><div class="gmail_quote">
On Thu, Jun 11, 2009 at 4:48 PM, Simon Elbaz <span dir="ltr"><<a href="mailto:elbazsimon9@gmail.com">elbazsimon9@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I am trying to set a session credentials plugins in an application. A request on '<a href="http://localhost:8080/" target="_blank">http://localhost:8080/</a>' sends me to the login form as defined in the plugin.<br>
Whereas, a request on '<a href="http://localhost:9030/++skin++Login/@@search.html" target="_blank">http://localhost:9030/++skin++Login/@@search.html</a>' triggers the 'Authentication Required' popup (realm Zope).<br>
<br>I have tried to debug with pdb and here are the lines just before the popup appears:<br>(Pdb) r<br>> /home/simon/.buildout/eggs/zope.app.wsgi-3.5.2-py2.5.egg/zope/app/wsgi/__init__.py(58)__call__()<br>-> response = request.response<br>
(Pdb) r<br>--Return--<br>> /home/simon/.buildout/eggs/zope.app.wsgi-3.5.2-py2.5.egg/zope/app/wsgi/__init__.py(71)__call__()->('',)<br>-> return response.consumeBodyIter()<br>(Pdb) r<br>> /home/simon/.buildout/eggs/Paste-1.7.2-py2.5.egg/paste/httpserver.py(289)wsgi_execute()<br>
-> try:<br>(Pdb) r<br>--Return--<br>> /home/simon/.buildout/eggs/Paste-1.7.2-py2.5.egg/paste/httpserver.py(297)wsgi_execute()->None<br>-> result = None<br><br><br>browser/configure.zcml<br>--------------------------------<br>
<br><page<br> name="search.html"<br> for="zope.app.folder.interfaces.IFolder"<br> permission="cdcadama.View"<br> layer="cdcadama.layer.ICdcadamaBrowserLayer"<br>
class=".login.SearchAddForm"<br>/><br><br><br>Could someone tell me how to inhibate the HTTPBasicAuth popup ?<br><br>Thanks<br><font color="#888888">Simon<br>
</font></blockquote></div><br>