[Checkins] [zopefoundation/Zope] 1296b4: Also call `_unauthorized` if application code rais...

GitHub noreply at github.com
Fri May 5 12:02:36 CEST 2017


  Branch: refs/heads/restore_response_unauthorized
  Home:   https://github.com/zopefoundation/Zope
  Commit: 1296b4acac5e60b74f6f472317265a5d4a6369e8
      https://github.com/zopefoundation/Zope/commit/1296b4acac5e60b74f6f472317265a5d4a6369e8
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-05 (Fri, 05 May 2017)

  Changed paths:
    M src/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt
    M src/ZPublisher/HTTPResponse.py
    M src/ZPublisher/WSGIPublisher.py
    M src/ZPublisher/tests/test_WSGIPublisher.py

  Log Message:
  -----------
  Also call `_unauthorized` if application code raised Unauthorized.

Rather than raising an Unauthorized HTTP exception, we have to trust
and use the possibly modified response instance. This means you can
not register exception views for Unauthorized, same as in Zope 2.13.




More information about the checkins mailing list