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

Creating a new 5.1-pending site with policy package -> aborting transaction due to no CSRF protection #2316

Closed
zopyx opened this issue Feb 21, 2018 · 3 comments · Fixed by #2410

Comments

@zopyx
Copy link
Member

zopyx commented Feb 21, 2018

Creating a new Plone 5.1-pending site with a simple policy package and these dependencies (the dependencies are irrelevant since I can reproduce the error with plone.app.dexterity as single dependency too)

<?xml version='1.0' encoding='UTF-8'?>
<metadata>
  <version>1000</version>
  <dependencies>
      <dependency>profile-plone.app.dexterity:default</dependency>
      <dependency>profile-plone.restapi:default</dependency>
      <dependency>profile-Products.PloneFormGen:default</dependency>
      <dependency>profile-plone.app.multilingual:default</dependency>
      <!--
      <dependency>profile-dynamore.seminarsdx:default</dependency>
      -->
  </dependencies>
</metadata>

causes this error


2018-02-21 08:13:28 INFO ZServer HTTP server started at Wed Feb 21 08:13:28 2018
        Hostname: 0.0.0.0
        Port: 5080
2018-02-21 08:13:31 INFO Products.PloneFormGen gpg_subprocess initialized, using /usr/bin/gpg
2018-02-21 08:13:32 INFO ZEO.ClientStorage zeostorage ClientStorage (pid=27729) created RW/normal for storage: '1'
2018-02-21 08:13:32 INFO ZEO.cache created temporary cache file '<fdopen>'
2018-02-21 08:13:32 INFO ZODB.blob (27729) Blob directory `/home/plone/sandboxes/dynamore.buildout.plone5/var/blobstorage` is unused and has no layout marker set. Selected `bushy` layout. 
2018-02-21 08:13:32 INFO ZEO.asyncio.base Connected Protocol(('127.0.0.1', 5200), '1', False)
2018-02-21 08:13:32 INFO ZEO.ClientStorage zeostorage Connected to storage: ('localhost', 5200)
2018-02-21 08:13:41 INFO PloneFormGen Patching plone.app.portlets ColumnPortletManagerRenderer to not catch Retry exceptions
2018-02-21 08:13:41 INFO Zope Ready to handle requests
2018-02-21 08:13:49 ERROR Zope.SiteErrorLog 1519197229.260.35271801443 http://dynamore.zopyx.de:5080/manage_delObjects
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module OFS.ObjectManager, line 538, in manage_delObjects
BadRequest: dynamore-se does not exist
2018-02-21 08:14:03 INFO Products.CMFPlone CSRF protection disabled on initial site creation
2018-02-21 08:14:03 INFO Products.GenericSetup.tool Importing profile profile-Products.CMFPlone:plone with dependency strategy upgrade.
2018-02-21 08:14:03 INFO Products.GenericSetup.tool Applying main profile profile-Products.CMFPlone:plone
2018-02-21 08:14:03 INFO Products.GenericSetup.tool Profile upgrade versions purged.
2018-02-21 08:14:03 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:03 INFO GenericSetup.properties Site properties imported.
2018-02-21 08:14:03 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:03 INFO GenericSetup.componentregistry Adapters purged.
2018-02-21 08:14:03 INFO GenericSetup.componentregistry Subscribers purged.
2018-02-21 08:14:03 INFO GenericSetup.componentregistry Utilities purged.
2018-02-21 08:14:03 INFO GenericSetup.componentregistry Adapters registered.
2018-02-21 08:14:03 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:03 INFO GenericSetup.skins Skins tool imported.
2018-02-21 08:14:03 INFO GenericSetup.actions Actions tool imported.
2018-02-21 08:14:03 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:03 INFO GenericSetup.memberdata MemberData tool imported.
2018-02-21 08:14:03 INFO GenericSetup.contenttypes Content type registry imported.
2018-02-21 08:14:03 INFO GenericSetup.mailhost Mailhost imported.
2018-02-21 08:14:03 INFO GenericSetup.propertiestool Properties tool imported.
2018-02-21 08:14:03 INFO GenericSetup.plone.app.viewletmanager Imported.
2018-02-21 08:14:03 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:03 INFO GenericSetup.types 'Discussion Item' type info imported.
2018-02-21 08:14:03 INFO GenericSetup.types 'Plone Site' type info imported.
2018-02-21 08:14:03 INFO GenericSetup.types 'TempFolder' type info imported.
2018-02-21 08:14:03 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:03 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:03 INFO GenericSetup.repositorytool Nothing to import.
2018-02-21 08:14:03 INFO GenericSetup.catalog Catalog imported.
2018-02-21 08:14:03 INFO GenericSetup.workflow Workflow tool imported.
2018-02-21 08:14:03 INFO Products.GenericSetup.tool Importing profile profile-Products.CMFPlone:dependencies with dependency strategy upgrade.
2018-02-21 08:14:03 INFO Products.GenericSetup.tool Applying profile profile-Products.CMFFormController:CMFFormController
2018-02-21 08:14:03 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:03 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:03 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:03 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:03 INFO GenericSetup.repositorytool Nothing to import.
2018-02-21 08:14:03 INFO Products.GenericSetup.tool Applying profile profile-Products.MimetypesRegistry:MimetypesRegistry
2018-02-21 08:14:03 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Adapters registered.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:04 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.repositorytool Nothing to import.
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-Products.PortalTransforms:PortalTransforms
2018-02-21 08:14:04 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Adapters registered.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:04 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.repositorytool Nothing to import.
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-Products.CMFEditions:CMFEditions
2018-02-21 08:14:04 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Adapters registered.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:04 INFO GenericSetup.skins Skins tool imported.
2018-02-21 08:14:04 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup. RepositoryTool settings imported.
2018-02-21 08:14:04 INFO GenericSetup.catalog Catalog imported.
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-Products.PlonePAS:PlonePAS
2018-02-21 08:14:04 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-plone.app.z3cform:default
2018-02-21 08:14:04 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:04 INFO GenericSetup.plone.app.registry Cannot find registry
2018-02-21 08:14:04 INFO GenericSetup.bundles Cannot find registry
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-plone.app.registry:default
2018-02-21 08:14:04 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Adapters registered.
2018-02-21 08:14:04 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:04 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-plone.app.discussion:default
2018-02-21 08:14:04 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:04 INFO GenericSetup.actions Actions tool imported.
2018-02-21 08:14:04 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:04 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:04 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:04 INFO GenericSetup.types 'Discussion Item' type info imported.
2018-02-21 08:14:04 INFO GenericSetup.resourceregistry Javascript registry imported.
2018-02-21 08:14:04 INFO GenericSetup.catalog Catalog imported.
2018-02-21 08:14:04 INFO GenericSetup.workflow Workflow tool imported.
2018-02-21 08:14:04 INFO Products.GenericSetup.tool Applying profile profile-plone.app.intid:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.app.relationfield:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.app.linkintegrity:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.resource:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:05 INFO GenericSetup.componentregistry Adapters registered.
2018-02-21 08:14:05 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.app.theming:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:05 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.app.users:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO plone.app.users.setuphandlers Imported schema
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.outputfilters:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.app.querystring:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.portlet.collection:default
2018-02-21 08:14:05 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:05 INFO GenericSetup.portlets Portlets imported
2018-02-21 08:14:05 INFO Products.GenericSetup.tool Applying profile profile-plone.portlet.static:default
2018-02-21 08:14:06 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:06 INFO GenericSetup.portlets Portlets imported
2018-02-21 08:14:06 INFO Products.GenericSetup.tool Applying profile profile-plone.keyring:default
2018-02-21 08:14:06 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:06 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:06 INFO Products.GenericSetup.tool Applying profile profile-plone.protect:default
2018-02-21 08:14:06 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:06 INFO Products.GenericSetup.tool Applying main profile profile-Products.CMFPlone:dependencies
2018-02-21 08:14:06 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:06 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:07 INFO GenericSetup.portlets Portlets imported
2018-02-21 08:14:07 INFO Products.GenericSetup.tool Importing profile profile-plone.app.contenttypes:plone-content with dependency strategy upgrade.
2018-02-21 08:14:07 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.z3cform:default. Profile stays at version (u'3',).
2018-02-21 08:14:07 INFO Products.GenericSetup.tool Applying profile profile-plone.app.dexterity:default
2018-02-21 08:14:07 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:07 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:07 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.registry:default. Profile stays at version (u'1', u'0a1').
2018-02-21 08:14:07 INFO Products.GenericSetup.tool Applying profile profile-plone.formwidget.recurrence:default
2018-02-21 08:14:07 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:07 INFO Products.GenericSetup.tool Applying profile profile-plone.app.event:default
2018-02-21 08:14:07 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:07 INFO GenericSetup.actions Actions tool imported.
2018-02-21 08:14:07 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:07 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:07 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:07 INFO GenericSetup.types 'Plone Site' type info imported.
2018-02-21 08:14:07 INFO GenericSetup.types 'Folder' type info imported.
2018-02-21 08:14:07 INFO GenericSetup.types 'Collection' type info imported.
2018-02-21 08:14:07 INFO Products.CMFPlone Cooking js ++resource++plone.app.discussion.javascripts/comments.js
2018-02-21 08:14:07 INFO Products.CMFPlone Cooking js jquery.highlightsearchterms.js
2018-02-21 08:14:08 INFO Products.CMFPlone Cooking css ++resource++plone.app.event/event.css
2018-02-21 08:14:08 INFO Products.CMFPlone Writing cooked resource: static/plone-legacy-compiled.js
2018-02-21 08:14:08 INFO Products.CMFPlone Writing cooked resource: static/plone-legacy-compiled.css
2018-02-21 08:14:08 INFO GenericSetup.resourceregistry Stylesheet registry imported.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Old catalog DateIndex start deleted.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Catalog DateRecurringIndex start created.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Catalog metadata column start already exists.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Old catalog DateIndex end deleted.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Catalog DateRecurringIndex end created.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Catalog metadata column end already exists.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Catalog FieldIndex sync_uid created.
2018-02-21 08:14:08 INFO plone.app.event.setuphandlers Catalog metadata column sync_uid created.
2018-02-21 08:14:08 INFO Products.CMFPlone Cooking js ++resource++plone.app.discussion.javascripts/comments.js
2018-02-21 08:14:08 INFO Products.CMFPlone Cooking js jquery.highlightsearchterms.js
2018-02-21 08:14:08 INFO Products.CMFPlone Cooking css ++resource++plone.app.event/event.css
2018-02-21 08:14:08 INFO Products.CMFPlone Cooking js ++resource++plone.app.event/event.js
2018-02-21 08:14:08 INFO Products.CMFPlone Writing cooked resource: static/plone-legacy-compiled.js
2018-02-21 08:14:08 INFO Products.CMFPlone Writing cooked resource: static/plone-legacy-compiled.css
2018-02-21 08:14:08 INFO GenericSetup.resourceregistry Javascript registry imported.
2018-02-21 08:14:08 INFO GenericSetup.portlets Portlets imported
2018-02-21 08:14:08 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.querystring:default. Profile stays at version (u'13',).
2018-02-21 08:14:08 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.intid:default. Profile stays at version (u'1',).
2018-02-21 08:14:08 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.relationfield:default. Profile stays at version (u'1',).
2018-02-21 08:14:08 INFO Products.GenericSetup.tool Applying profile profile-plone.app.versioningbehavior:default
2018-02-21 08:14:08 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:08 INFO Products.GenericSetup.tool Applying profile profile-plone.app.contenttypes:default
2018-02-21 08:14:08 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:08 INFO GenericSetup. DiffTool settings imported.
2018-02-21 08:14:08 INFO GenericSetup. DiffTool settings imported.
2018-02-21 08:14:08 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:08 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Plone Site' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Collection' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Document' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Folder' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Link' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'File' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Image' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'News Item' type info imported.
2018-02-21 08:14:08 INFO GenericSetup.types 'Event' type info imported.
2018-02-21 08:14:08 INFO Products.GenericSetup.tool Applying main profile profile-plone.app.contenttypes:plone-content
2018-02-21 08:14:08 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:08 INFO GenericSetup.portlets Portlets imported
2018-02-21 08:14:09 INFO Products.GenericSetup.tool Importing profile profile-plonetheme.barceloneta:default with dependency strategy upgrade.
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.z3cform:default. Profile stays at version (u'3',).
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.registry:default. Profile stays at version (u'1', u'0a1').
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.resource:default. Profile stays at version (u'1',).
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.theming:default. Profile stays at version (u'1001',).
2018-02-21 08:14:09 INFO Products.GenericSetup.tool Applying main profile profile-plonetheme.barceloneta:default
2018-02-21 08:14:09 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:09 INFO GenericSetup.skins Skins tool imported.
2018-02-21 08:14:09 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:09 INFO plone.app.theming.policy invalidating cache across all threads and processes
2018-02-21 08:14:09 INFO plone.app.theming.policy invalidating cache across all threads and processes
2018-02-21 08:14:09 INFO plone.app.theming.policy invalidating cache across all threads and processes
2018-02-21 08:14:09 INFO plone.app.theming.policy invalidating cache across all threads and processes
2018-02-21 08:14:09 INFO plone.app.theming.policy invalidating cache across all threads and processes
2018-02-21 08:14:09 INFO GenericSetup.plone.app.theming.exportimport Theme barceloneta applied
2018-02-21 08:14:09 INFO plone.app.theming.policy invalidating cache across all threads and processes
2018-02-21 08:14:09 INFO GenericSetup.plone.app.theming.exportimport Theme enabled
2018-02-21 08:14:09 INFO Products.GenericSetup.tool Importing profile profile-plone.app.caching:default with dependency strategy upgrade.
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.z3cform:default. Profile stays at version (u'3',).
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.registry:default. Profile stays at version (u'1', u'0a1').
2018-02-21 08:14:09 INFO Products.GenericSetup.tool Applying main profile profile-plone.app.caching:default
2018-02-21 08:14:09 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:09 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:09 INFO Products.GenericSetup.tool Importing profile profile-dynamore.policy:default with dependency strategy upgrade.
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.z3cform:default. Profile stays at version (u'3',).
2018-02-21 08:14:09 INFO Products.GenericSetup.tool No upgrades available for profile profile-plone.app.dexterity:default. Profile stays at version (u'2005',).
2018-02-21 08:14:09 INFO Products.GenericSetup.tool Applying profile profile-plone.restapi:default
2018-02-21 08:14:09 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:09 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:10 INFO Products.GenericSetup.tool No upgrades available for profile profile-Products.CMFFormController:CMFFormController. Profile stays at version (u'2', u'1').
2018-02-21 08:14:10 INFO Products.GenericSetup.tool No upgrades available for profile profile-Products.MimetypesRegistry:MimetypesRegistry. Profile stays at version (u'2',).
2018-02-21 08:14:10 INFO Products.GenericSetup.tool No upgrades available for profile profile-Products.PortalTransforms:PortalTransforms. Profile stays at version (u'1', u'6').
2018-02-21 08:14:10 INFO Products.GenericSetup.tool Applying profile profile-Products.Archetypes:Archetypes
2018-02-21 08:14:10 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:10 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:10 INFO GenericSetup.skins Skins tool imported.
2018-02-21 08:14:10 INFO GenericSetup.archetypetool Archetype tool imported.
2018-02-21 08:14:10 INFO Products.GenericSetup.tool Applying profile profile-Products.ATContentTypes:base
2018-02-21 08:14:10 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:10 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:10 INFO GenericSetup.componentregistry Utilities registered.
2018-02-21 08:14:10 INFO GenericSetup.skins Skins tool imported.
2018-02-21 08:14:10 INFO GenericSetup.archetypetool Archetype tool imported.
2018-02-21 08:14:10 INFO Products.GenericSetup.tool Applying profile profile-Products.PloneFormGen:default
2018-02-21 08:14:10 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:10 INFO GenericSetup.toolset Toolset imported.
2018-02-21 08:14:10 INFO GenericSetup.skins Skins tool imported.
2018-02-21 08:14:10 INFO GenericSetup.actions Actions tool imported.
2018-02-21 08:14:10 INFO GenericSetup.controlpanel Control panel imported.
2018-02-21 08:14:10 INFO GenericSetup. ArchetypeTool settings imported.
2018-02-21 08:14:10 INFO GenericSetup.archetypetool Archetype tool imported.
2018-02-21 08:14:10 INFO GenericSetup.propertiestool Properties tool imported.
2018-02-21 08:14:10 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FieldsetFolder' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormBooleanField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormCaptchaField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormCustomScriptAdapter' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormDateField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormFileField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormFixedPointField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormFolder' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormIntegerField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormLabelField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormLikertField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormLinesField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormMailerAdapter' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormMultiSelectionField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormPasswordField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormRichLabelField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormRichTextField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormSaveDataAdapter' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormSelectionField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormStringField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormTextField' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FormThanksPage' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FieldsetStart' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'FieldsetEnd' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.factorytool FactoryTool settings imported.
2018-02-21 08:14:10 INFO GenericSetup.workflow Workflow tool imported.
2018-02-21 08:14:10 INFO Products.GenericSetup.tool Applying profile profile-plone.app.multilingual:default
2018-02-21 08:14:10 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:10 INFO GenericSetup.reference_catalog Catalog imported.
2018-02-21 08:14:10 INFO GenericSetup.archetypetool Archetype tool imported.
2018-02-21 08:14:10 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:10 INFO GenericSetup.plone.app.viewletmanager Imported.
2018-02-21 08:14:10 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'LRF' type info imported.
2018-02-21 08:14:10 INFO GenericSetup.types 'LIF' type info imported.
2018-02-21 08:14:11 INFO ProgressHandler Process started (6 objects to go)
2018-02-21 08:14:11 INFO ProgressHandler Process terminated. Duration: 0.00 seconds
2018-02-21 08:14:11 INFO ProgressHandler Process started (6 objects to go)
2018-02-21 08:14:11 INFO ProgressHandler Process terminated. Duration: 0.00 seconds
2018-02-21 08:14:11 INFO GenericSetup.catalog Catalog imported.
2018-02-21 08:14:11 INFO Products.GenericSetup.tool Applying main profile profile-dynamore.policy:default
2018-02-21 08:14:11 INFO GenericSetup.rolemap Role / permission map imported.
2018-02-21 08:14:11 INFO GenericSetup.archetypetool Archetype tool imported.
2018-02-21 08:14:11 INFO GenericSetup.browserlayer Browser layers imported
2018-02-21 08:14:11 INFO GenericSetup.types Types tool imported.
2018-02-21 08:14:11 INFO GenericSetup.types 'richdocument' type info imported.
2018-02-21 08:14:11 INFO GenericSetup.types 'richfolder' type info imported.
2018-02-21 08:14:11 INFO GenericSetup.types 'dynaperson' type info imported.
2018-02-21 08:14:11 INFO GenericSetup.types 'dynalocation' type info imported.
2018-02-21 08:14:16 INFO plone.protect   File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/Zope2-2.13.26-py2.7.egg/ZServer/PubCore/ZServerPublisher.py", line 31, in __init__
    response=b)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/Zope2-2.13.26-py2.7.egg/ZPublisher/Publish.py", line 455, in publish_module
    environ, debug, request, response)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/Zope2-2.13.26-py2.7.egg/ZPublisher/Publish.py", line 249, in publish_module_standard
    response = publish(request, module_name, after_list, debug=debug)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/Zope2-2.13.26-py2.7.egg/ZPublisher/Publish.py", line 143, in publish
    notify(PubBeforeCommit(request))

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/zope.event-3.5.2-py2.7.egg/zope/event/__init__.py", line 31, in notify
    subscriber(event)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/zope.component-4.4.1-py2.7.egg/zope/component/event.py", line 27, in dispatch
    component_subscribers(event, None)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 139, in subscribers
    return sitemanager.subscribers(objects, interface)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 442, in subscribers
    return self.adapters.subscribers(objects, provided)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 607, in subscribers
    subscription(*objects)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/plone.transformchain-1.2.2-py2.7.egg/plone/transformchain/zpublisher.py", line 86, in applyTransformOnSuccess
    transformed = applyTransform(event.request)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/plone.transformchain-1.2.2-py2.7.egg/plone/transformchain/zpublisher.py", line 75, in applyTransform
    transformed = transformer(request, result, encoding)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/plone.transformchain-1.2.2-py2.7.egg/plone/transformchain/transformer.py", line 50, in __call__
    newResult = handler.transformIterable(result, encoding)

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/plone.protect-3.1.2-py2.7.egg/plone/protect/auto.py", line 186, in transformIterable
    if not self.check():

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/plone.protect-3.1.2-py2.7.egg/plone/protect/auto.py", line 211, in check
    return self._check()

  File "/home/plone/sandboxes/dynamore.buildout.plone5/eggs/plone.protect-3.1.2-py2.7.egg/plone/protect/auto.py", line 283, in _check
    '\n'.join(traceback.format_stack()),

aborting transaction due to no CSRF protection on url http://dynamore.zopyx.de:5080/dynamore-se/front-page/document_view
@zopyx zopyx added this to the Plone 5.1 milestone Feb 21, 2018
@zopyx
Copy link
Member Author

zopyx commented Feb 21, 2018

Plone itself installs perfectly without the policy package. Installing the policy later through Plone also does not show any installation related issues.

@zopyx zopyx changed the title aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) due error swalling ot Plone/CMF during the startup phase Feb 21, 2018
@zopyx zopyx changed the title aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) due error swalling ot Plone/CMF during the startup phase CMF/Plone swallowing exception in startup phase -> aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) Feb 21, 2018
@zopyx zopyx changed the title CMF/Plone swallowing exception in startup phase -> aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) CMF/Plone swallowing exceptions in startup phase -> aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) Feb 21, 2018
@zopyx zopyx changed the title CMF/Plone swallowing exceptions in startup phase -> aborting transaction due to no CSRF protection during Plone site creation (5.1-pending) Creating a new 5.1-pending site with policy package -> aborting transaction due to no CSRF protection Feb 21, 2018
@mauritsvanrees
Copy link
Member

Is the site itself created successfully at this point?
Do you end up at the confirmation page where Plone warns you that you may be a victim of CSRF? (I don't remember the exact text that is used here.)
Does loading the front-page again work? Or maybe visiting another page, like News or Events?

@zopyx
Copy link
Member Author

zopyx commented Feb 23, 2018

The site is created (correctly). However the CSRF warning is weird here.

mauritsvanrees added a commit that referenced this issue May 14, 2018
…ra profiles.

This avoids errors in some cases when selecting add-ons in the advanced Plone Site add form,
where installing them right after site creation in the add-ons control panel goes fine.

Fixes #2316
mauritsvanrees added a commit that referenced this issue May 14, 2018
…ra profiles.

This avoids errors in some cases when selecting add-ons in the advanced Plone Site add form,
where installing them right after site creation in the add-ons control panel goes fine.

Fixes #2316
mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue May 14, 2018
Branch: refs/heads/master
Date: 2018-05-14T08:52:26+02:00
Author: Maurits van Rees (mauritsvanrees) <maurits@vanrees.org>
Commit: plone/Products.CMFPlone@4be00d0

When adding a Plone Site, do a transaction commit before applying extra profiles.

This avoids errors in some cases when selecting add-ons in the advanced Plone Site add form,
where installing them right after site creation in the add-ons control panel goes fine.

Fixes plone/Products.CMFPlone#2316

Files changed:
M CHANGES.rst
M Products/CMFPlone/factory.py
Repository: Products.CMFPlone

Branch: refs/heads/master
Date: 2018-05-14T11:17:21+02:00
Author: Jens W. Klein (jensens) <jk@kleinundpartner.at>
Commit: plone/Products.CMFPlone@491e0eb

Merge pull request #2410 from plone/add-plonesite-commit-before-applying-profiles-master

Add Plone Site: do a transaction commit before profiles

Files changed:
M CHANGES.rst
M Products/CMFPlone/factory.py
mauritsvanrees added a commit that referenced this issue May 14, 2018
…ra profiles.

This avoids errors in some cases when selecting add-ons in the advanced Plone Site add form,
where installing them right after site creation in the add-ons control panel goes fine.

Fixes #2316
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants