strange permission errors again
After the latest round of CVS updates I am again getting strange requests for authorisation in unusual places. No matter that I use my admin to try and validate they still occur. Typical piece of code is <dtml-with "_.namespace(SUB=include.ZGA_Eval(sub))"> <dtml-if "_.len(SUB)>0"> NAVDATA[<dtml-var sequence-index>].flag=<dtml-var sequence-index>; NAVSTATE=new Array(); <dtml-in SUB> NAVSTATE[<dtml-var sequence-index>]=new Object(); NAVSTATE[<dtml-var sequence-index>].ref = '<dtml-var "_['sequence-item'][0]">'; NAVSTATE[<dtml-var sequence-index>].label = '<dtml-var "_['sequence-item'][1]">'; </dtml-in> NAVDATA[<dtml-var sequence-index>].sub=NAVSTATE; <dtml-else> NAVDATA[<dtml-var sequence-index>].flag=-1; </dtml-if> </dtml-with> Brian fixed this up before and it has crept back in somehow. Zope Error Zope has encountered an error while publishing this resource. Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Python\devel\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: index_html) File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: index_html) File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__ (Object: index_html) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: index_html) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob (Object: NavData) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: _.namespace(SUB=include.ZGA_Eval(sub))) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_Util.py, line 327, in eval (Object: _.len(SUB)>0) (Info: SUB) File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 189, in validate (Object: index_html) File C:\Python\devel\Zope\lib\python\AccessControl\SecurityManager.py, line 139, in validate File C:\Python\devel\Zope\lib\python\AccessControl\ZopeSecurityPolicy.py, line 158, in validate Unauthorized: SUB -- Robin Becker
Is there a way to pass variables from one page to another using an <a href> but not including them in the url after a ?? sorry, I know this is an html question, but I figured it was pretty zope related. josh on
In article <000b01bfd866$1d2cc3c0$0fc550c2@joshon>, josh on <josh@zesty.com> writes
Is there a way to pass variables from one page to another using an <a href> but not including them in the url after a ??
sorry, I know this is an html question, but I figured it was pretty zope related.
josh on
... you can do anything with javascript of course -- Robin Becker
In article <N67oNIALy3S5Ew$2@jessikat.demon.co.uk>, Robin Becker <robin@jessikat.demon.co.uk> writes
After the latest round of CVS updates I am again getting strange requests for authorisation in unusual places. No matter that I use my admin to try and validate they still occur.
Typical piece of code is
A simpler example, the error is raised in the _.len(SUB) expresssion. <dtml-var standard_html_header> <h2><dtml-var title_or_id></h2> <p> <dtml-with "_.namespace(SUB=['AAAAA'])"> <dtml-if "_.len(SUB)>0"> <dtml-in SUB> <dtml-var sequence-index> = <dtml-var sequence-item> </dtml-in> <dtml-else> Nothing </dtml-if> </dtml-with> </p> <dtml-var standard_html_footer> Zope Error Zope has encountered an error while publishing this resource. Unauthorized Sorry, a Zope error occurred. Traceback (innermost last): File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\Python\devel\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: tWith_dtml) File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: tWith_dtml) File C:\Python\devel\Zope\lib\python\OFS\DTMLDocument.py, line 168, in __call__ (Object: tWith_dtml) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in __call__ (Object: tWith_dtml) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_With.py, line 146, in render (Object: _.namespace(SUB=['AAAAA'])) File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_Util.py, line 327, in eval (Object: _.len(SUB)>0) (Info: SUB) File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 189, in validate (Object: tWith_dtml) File C:\Python\devel\Zope\lib\python\AccessControl\SecurityManager.py, line 139, in validate File C:\Python\devel\Zope\lib\python\AccessControl\ZopeSecurityPolicy.py, line 158, in validate Unauthorized: SUB -- Robin Becker
In article <1H02yLAzKKT5Ewjp@jessikat.demon.co.uk>, Robin Becker <robin@jessikat.demon.co.uk> writes
In article <N67oNIALy3S5Ew$2@jessikat.demon.co.uk>, Robin Becker <robin@jessikat.demon.co.uk> writes
After the latest round of CVS updates I am again getting strange requests for authorisation in unusual places. No matter that I use my admin to try and validate they still occur.
Typical piece of code is
A simpler example, the error is raised in the _.len(SUB) expresssion.
well it went away again now :) thanks -- Robin Becker
Robin Becker wrote:
After the latest round of CVS updates I am again getting strange requests for authorisation in unusual places. No matter that I use my admin to try and validate they still occur.
(etc)
Brian fixed this up before and it has crept back in somehow.
Thanks for the bug report. The problem occurred because (cough, cough) someone (ahem) forgot to recompile after applying the changes to cDocumentTemplate.c. The correction is in AccessControl/SimpleObjectPolicies.py. Shane
participants (3)
-
josh on -
Robin Becker -
Shane Hathaway