[Zope] Can't set security on file objects (bug)

Michiel Toneman toneman@phil.uu.nl
Fri, 25 Feb 2000 15:25:50 +0100 (CET)


On Wed, 23 Feb 2000, Michel Pelletier wrote:

> What's the traceback embeded in the HTML error page?
> 
> -Michel
> 


Hi Michel

This is what I get:

Traceback (innermost last):
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook
    (Object: test)
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_changePermissions)
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object
    (Object: manage_changePermissions)
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/AccessControl/Role.py, line 247, in manage_changePermissions
    (Object: test)
  File /usr/local/Zope-2.1.4-linux2-x86/lib/python/AccessControl/Permission.py, line 171, in setRoles
AttributeError: (see above)


Greetings,

Michiel

> > 
> > Hi,
> > 
> > I'm trying to protect some documents (binary)
> > from being viewed. I've uploaded them as file
> > objects, but I can't set the "view" security
> > property from them. I get a Zope error:
> > 
> > Error Type: AttributeError
> > Error Value: tag
> > 
> > I think I can achieve my goal with a protected directory,
> > but I think this is a bug (Zope 2.1.4).
> > 
> > Greetings,
> > 
> > Michiel
> 

-- 
From a Sun Microsystems bug report (#4102680):
 "Workaround: don't pound on the mouse like a wild monkey."