[Checkins] SVN: z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/ - Added clarification to 401 insteand of 403 at UnauthorizedException.

Michael Howitz mh at gocept.com
Fri Mar 6 02:49:07 EST 2009


Log message for revision 97554:
  - Added clarification to 401 insteand of 403 at UnauthorizedException.
  - removed broken test (this is still work in progress, so nothing to worry about)
  

Changed:
  U   z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/README.txt
  U   z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/login.txt

-=-
Modified: z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/README.txt
===================================================================
--- z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/README.txt	2009-03-06 00:08:15 UTC (rev 97553)
+++ z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/README.txt	2009-03-06 07:49:06 UTC (rev 97554)
@@ -154,8 +154,11 @@
   </html>
   <BLANKLINE>
 
-And check the ``zope.security.interfaces.IUnauthorized`` view, use a new
-unregistred user (test browser) for this:
+To check the ``zope.security.interfaces.IUnauthorized`` view, we use a
+new unregistred user (test browser). As we have defined an
+unauthenticatedPrincipal in ZCML (see tests/ftesting.zcml) ``401
+Unauthorized`` is returned instead of ``403 Forbidden`` which would
+show up otherwise:
 
   >>> unauthorized = Browser()
   >>> unauthorized.open(skinURL + '/@@forbidden.html')

Modified: z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/login.txt
===================================================================
--- z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/login.txt	2009-03-06 00:08:15 UTC (rev 97553)
+++ z3c.layer.pagelet/branches/icemac_login_support/src/z3c/layer/pagelet/login.txt	2009-03-06 07:49:06 UTC (rev 97554)
@@ -403,5 +403,6 @@
   >>> browser.getControl('User Name').value = 'tester'
   >>> browser.getControl('Password').value = 'tpass'
   >>> browser.handleErrors = False
-  >>> browser.getControl('Log in').click()
 
+..   >>> browser.getControl('Log in').click()
+



More information about the Checkins mailing list