[ZCM] [ZC] 1460/ 1 Request "guarded_apply too restrictive
(HEAD/2.8)"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon Aug 9 03:53:44 EDT 2004
Issue #1460 Update (Request) "guarded_apply too restrictive (HEAD/2.8)"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/1460
==============================================================
= Request - Entry #1 by yuppie on Aug 9, 2004 3:53 am
This test script raises Unauthorized if a kw value is not a string or tuple:
def foo(text):
return text
kw = {'text':'baz'}
print foo(**kw)
kw = {'text':True}
print foo(**kw)
return printed
Traceback (innermost last):
...
- Line 8
Module AccessControl.ZopeGuards, line 356, in guarded_apply
Module AccessControl.ZopeGuards, line 376, in builtin_guarded_apply
Module AccessControl.ZopeGuards, line 226, in guard
Unauthorized: You are not allowed to access 'text' in this context
==============================================================
More information about the Zope-Collector-Monitor
mailing list