[ZCM] [ZC] 1460/ 2 Accept "guarded_apply too restrictive (HEAD/2.8)"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Oct 5 23:43:35 EDT 2004


Issue #1460 Update (Accept) "guarded_apply too restrictive (HEAD/2.8)"
 Status Accepted, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1460

==============================================================
= Accept - Entry #2 by ajung on Oct 5, 2004 11:43 pm

 Status: Pending => Accepted

 Supporters added: ajung

We should fix this for 2.8 a1
________________________________________
= 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