Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blows up when loading it #30

Closed
Rudd-O opened this issue Sep 30, 2016 · 1 comment · Fixed by #35
Closed

blows up when loading it #30

Rudd-O opened this issue Sep 30, 2016 · 1 comment · Fixed by #35

Comments

@Rudd-O
Copy link

Rudd-O commented Sep 30, 2016

if I add the egg and zcml for 1.6.4, the site will not start (plone 5.0.6):

Sep 30 15:01:24 declinefm.dragonfear router[31848]:     exec(compile(__file__f.read(), __file__, "exec"))
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 76, in <module>
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     run()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/run.py", line 22, in run
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     starter.prepare()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 92, in prepare
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     self.startZope()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/Startup/__init__.py", line 268, in startZope
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     Zope2.startup()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/__init__.py", line 47, in startup
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     _startup()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 118, in startup
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     load_zcml()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 52, in load_zcml
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     load_site()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/zcml.py", line 46, in load_site
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     _context = xmlconfig.file(site_zcml)
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", line 651, in file
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     context.execute_actions()
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", line 626, in execute_actions
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     callable(*args, **kw)
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/AccessControl-3.0.12-py2.7-linux-x86_64.egg/AccessControl/security.py", line 165, in protectClass
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     permission = getUtility(IPermission, name=permission_id)
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", line 169, in getUtility
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     raise ComponentLookupError(interface, name)
Sep 30 15:01:24 declinefm.dragonfear router[31848]: zope.configuration.config.ConfigurationExecutionError: <class 'zope.component.interfaces.ComponentLookupError'>: (<InterfaceClass zope.security.interfaces.IPermission>, 'cmf.ManagePortal')
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   in:
Sep 30 15:01:24 declinefm.dragonfear router[31848]:   File "/opt/plone/buildout-cache/eggs/plone.app.blob-1.6.4-py2.7.egg/plone/app/blob/browser/configure.zcml", line 5.2-10.38
Sep 30 15:01:24 declinefm.dragonfear router[31848]:     <browser:page
Sep 30 15:01:24 declinefm.dragonfear router[31848]:         for="Products.CMFPlone.interfaces.IPloneSiteRoot"
Sep 30 15:01:24 declinefm.dragonfear router[31848]:         name="blob-migration"
Sep 30 15:01:24 declinefm.dragonfear router[31848]:         template="migration.pt"
Sep 30 15:01:24 declinefm.dragonfear router[31848]:         class=".migration.BlobMigrationView"
Sep 30 15:01:24 declinefm.dragonfear router[31848]:         permission="cmf.ManagePortal" />
@mauritsvanrees
Copy link
Member

It shouldn't be needed to add plone.app.blob to a Plone buildout yourself, because it is loaded automatically.
But the error does point to a problem which should be fixed. I have created a pull request.

mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Feb 17, 2017
Branch: refs/heads/master
Date: 2017-02-16T23:58:07+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.app.blob@31234f7

Make sure core permissions are defined.

This fixes plone/plone.app.blob#30.

Files changed:
M CHANGES.rst
M src/plone/app/blob/browser/configure.zcml
Repository: plone.app.blob
Branch: refs/heads/master
Date: 2017-02-17T12:30:36+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.app.blob@48be832

Merge pull request #35 from plone/issue-30-permissions

Make sure core permissions are defined.

Files changed:
M CHANGES.rst
M src/plone/app/blob/browser/configure.zcml
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Feb 17, 2017
Branch: refs/heads/master
Date: 2017-02-16T23:58:07+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.app.blob@31234f7

Make sure core permissions are defined.

This fixes plone/plone.app.blob#30.

Files changed:
M CHANGES.rst
M src/plone/app/blob/browser/configure.zcml
Repository: plone.app.blob
Branch: refs/heads/master
Date: 2017-02-17T12:30:36+01:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/plone.app.blob@48be832

Merge pull request #35 from plone/issue-30-permissions

Make sure core permissions are defined.

Files changed:
M CHANGES.rst
M src/plone/app/blob/browser/configure.zcml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants