[Zope-dev] Zope 2.1.6: Test.py problem with patch

Dieter Maurer dieter@handshake.de
Thu, 1 Jun 2000 23:32:17 +0200 (CEST)


Problem:
Description:
  If a DTML method is accessed with "ZPublisher/Test.py",
  an "Unauthorized" exception is raised in "verify_watermark".
 
Environment:
  Zope 2.1.6, Linux 2, Intel

Analysis:
  The module "BaseRequest" is imported twice: once as "BaseRequest"
  and once as "ZPublisher.BaseRequest".
  The AUTHENTICATED_USER (and its watermark) is constructed by
  the first module instance; the check is made against
  the watermark of the second module instance and therefore
  fails.

Patch:
  URL:http://www.handshake.de/~dieter/pyprojects/zope/test.pat


Dieter