[ZCM] [ZC] 663/ 1 Request ""Access Rule" in 2.6.0 & DTMLMethod misbehaviour"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Tue, 05 Nov 2002 08:46:38 -0500


Issue #663 Update (Request) ""Access Rule" in 2.6.0 & DTMLMethod misbehaviour"
 Status Pending, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/663

==============================================================
= Request - Entry #1 by jdrowell on Nov 5, 2002 8:46 am


Uploaded:  "tmp"
 - http://collector.zope.org/Zope/663/tmp/view
When applying an "Access Rule" in Zope 2.6.0, and pointing the rule to a DTML Method (even an empty one) the URLX variables get corrupted starting with the URL corresponding to the Folder where the DTML Method is. This doesn't happen if the Access Rule is a Python Script. Attached is a patch that fixes this (will only compute the URLX variables once the traversal has ended) and also clean up the output of <dtml-var REQUEST>, which on 2.6.0 spits out 2 copies of each URLX and BASEX variable (unsorted :(). Note that without the patch not only are the URLX variables corrupted, but because of that the ZMI doesn't work properly (as it relies on redirects to URL1 in several places).
==============================================================