Broken dependency on zope.app.dublincore.view permission

Bug #622180 reported by Jonathan Ballet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ZODB Browser
Fix Released
Undecided
Marius Gedminas

Bug Description

From the following buildout.cfg file:

    [buildout]
    parts = app

    [app]
    recipe = zc.recipe.egg
    eggs = zodbbrowser

The following command (from the package documentation) issues this traceback:

    $ ./bin/zodbbrowser empty.fs --rw
    Traceback (most recent call last):
      File "./bin/zodbbrowser", line 113, in <module>
        zodbbrowser.standalone.main()
      File ".../eggs/zodbbrowser-0.7.2-py2.6.egg/zodbbrowser/standalone.py", line 179, in main
        configure(options)
      File ".../eggs/zodbbrowser-0.7.2-py2.6.egg/zodbbrowser/standalone.py", line 87, in configure
        context = xmlconfig.string(options.site_definition, context=context)
      File ".../eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/xmlconfig.py", line 671, in string
        context.execute_actions()
      File ".../eggs/zope.configuration-3.7.2-py2.6.egg/zope/configuration/config.py", line 606, in execute_actions
        callable(*args, **kw)
      File ".../eggs/zope.security-3.7.3-py2.6-linux-x86_64.egg/zope/security/permission.py", line 55, in checkPermission
        raise ValueError("Undefined permission id", permission_id)
    zope.configuration.config.ConfigurationExecutionError: <type 'exceptions.ValueError'>: ('Undefined permission id', 'zope.app.dublincore.view')
      in:
      File "<string>", line 33.10-34.41
      Could not read source.

I don't know in which package the zope.app.dublincore.view permission is from, but if I comment the line where it is used in zodbbrowser/standalone.py, then I can launch zodbbrowser as expected.

I provided a simple patch which fixes the problem for me, but I'm not sure this is the right way to solve the problem.

Revision history for this message
Jonathan Ballet (multani) wrote :
description: updated
Changed in zodbbrowser:
assignee: nobody → Marius Gedminas (mgedmin)
Changed in zodbbrowser:
status: New → Fix Committed
Changed in zodbbrowser:
milestone: none → 0.8
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.