It's specific to the repoze.who integration into TG2, since it doesn't occur 
if repoze.who is used in Pylons or TG2 without the built-in support.

Can you please try now, after updating your TG2 working copy?

I had a similar problem, which is fixed after r6113.

Cheers.

On Sunday January 18, 2009 16:35:25 Jorge Vargas wrote:
> Hi, I'm not 100% sure if this bug is introduced by TG's
> ErrorController or pylons or the new WSGIAppController (or any other
> changes in between) But the above configuration is "eating up the 401"
> response, and displaying it as an error, while the expected behavior
> is to trigger repoze.who.
>
> Could someone confirm or deny this is a bug in TG? also I'll love to
> have a suggestion on how to fix it as I'm not familiar with this part
> of the code.
>
>  {{{
>  def simple_app(environ, start_response):
>     """Simplest possible application object"""
>     status = '401'
>     response_headers = [('Content-type','text/plain')]
>     start_response(status, response_headers)
>     return ['Hello world!\n']
>
>  class RootController(BaseController):
>     error = ErrorController()
>     hg = WSGIAppController(simple_app)
>  }}}
>
>  The error is being handled by TG's ErrorController, if I delete that line
>  it's dropping to pylon's error controller.
>
>  Therefore I believe somewhere in the TG stack this is not being delegated
>  to repoze.who, which it should.
>
> --
> Ticket URL: <http://trac.turbogears.org/ticket/2152>
> TurboGears <http://www.turbogears.org/>
> TurboGears front-to-back web development
>
> 
-- 
Gustavo Narea <http://gustavonarea.net/>.

Get rid of unethical constraints! Get freedomware:
http://www.getgnulinux.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to