[Zope3-checkins] [Checkins] SVN: z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/README.txt fixed test: when the unauthenticatedPrincipal is defined in ZCML (see ftesting.zcml) 401 unauthorized is returned instead of 403 forbidden when an unauthorized exception is raised

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Mar 5 13:47:19 EST 2009


On Thursday 05 March 2009, Michael Howitz wrote:
> Log message for revision 97539:
>   fixed test: when the unauthenticatedPrincipal is defined in ZCML (see
> ftesting.zcml) 401 unauthorized is returned instead of 403 forbidden when
> an unauthorized exception is raised 
>
> Changed:
>   U  
> z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/READM
>E.txt
>
> -=-
> Modified:
> z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/READM
>E.txt ===================================================================
> ---
> z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/READM
>E.txt    2009-03-05 17:02:34 UTC (rev 97538) +++
> z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/READM
>E.txt    2009-03-05 17:13:58 UTC (rev 97539) @@ -161,7 +161,7 @@
>    >>> unauthorized.open(skinURL + '/@@forbidden.html')
>    Traceback (most recent call last):
>    ...
> -  httperror_seek_wrapper: HTTP Error 403: Forbidden
> +  HTTPError: HTTP Error 401: Unauthorized

Ok, strange. Could you add your log message text before the text, so that 
people will know that when they read the test?

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"


More information about the Zope3-Checkins mailing list