Ticket #1428 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

cannot import step "portlets" within the CPSDefault profile

Reported by: tziade Assigned to: div
Priority: P1 Milestone: CPS 3.4.0
Component: CPS (global) Version: TRUNK
Severity: major Keywords:
Cc:

Description

When trying to import the portlet tool step in the profiles, in an old cps 3.3.6 website in portal_setup, a security problem occurs

Site Error

An error was encountered while publishing this resource.

RuntimeError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 187, in publish_module_standard
    * Module Products.Localizer, line 60, in new_publish
    * Module ZPublisher.Publish, line 144, in publish
    * Module Products.CPSCompat.PatchPublisherConflictErrors, line 95, in zpublisher_exception_hook
    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.GenericSetup.tool, line 417, in manage_importSelectedSteps
    * Module Products.GenericSetup.tool, line 227, in runImportStep
    * Module Products.GenericSetup.tool, line 716, in _doRunImportStep
      __traceback_info__: portlets
    * Module Products.CPSPortlets.exportimport, line 84, in importPortletTool
    * Module Products.GenericSetup.utils, line 733, in importObjects
      __traceback_info__: portal_cpsportlets
    * Module Products.GenericSetup.utils, line 509, in _importBody
    * Module Products.CPSPortlets.exportimport, line 191, in _importNode
    * Module Products.CPSDocument.exportimport, line 86, in _initObjects
    * Module Products.CPSDocument.exportimport, line 125, in _addInstance
    * Module Products.CMFCore.PortalFolder, line 408, in invokeFactory
    * Module Products.CMFCore.TypesTool, line 933, in constructContent
    * Module Products.CPSDocument.FlexibleTypeInformation, line 190, in constructInstance
    * Module Products.CPSDocument.FlexibleTypeInformation, line 233, in _constructInstance
    * Module Products.CPSSchemas.DataModel, line 334, in _commit
    * Module Products.CPSSchemas.DataModel, line 360, in _commitData
    * Module Products.CPSSchemas.StorageAdapter, line 146, in setData
    * Module Products.CPSSchemas.StorageAdapter, line 177, in _setData
    * Module Products.CPSSchemas.StorageAdapter, line 194, in _setDataDoProcess
    * Module Products.CPSSchemas.Field, line 279, in processValueBeforeWrite
      __traceback_info__: python: modules["Products.CPSDefault.utils"].computeContributors(portal, value)
    * Module Products.CMFCore.Expression, line 44, in __call__
    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: modules["Products.CPSDefault.utils"].computeContributors(portal, value)
    * Module Python expression "modules["Products.CPSDefault.utils"].computeContributors(portal, value)", line 1, in <expression>
    * Module Products.CPSDefault.utils, line 156, in computeContributors
    * Module Products.CPSDirectory.BaseDirectory, line 418, in _getEntry
[...]
    * Module Products.CPSSchemas.DataModel, line 263, in _fetch
    * Module Products.CPSDirectory.MembersDirectory, line 330, in getData
    * Module Products.CPSDirectory.MembersDirectory, line 279, in _getMember
    * Module Products.CMFCore.MembershipTool, line 349, in getMemberById
    * Module Products.CMFCore.MembershipTool, line 359, in _huntUser
    * Module Products.CPSUserFolder.CPSUserFolder, line 448, in getUserById
    * Module Products.CPSUserFolder.CPSUserFolder, line 424, in getUser
    * Module Products.CPSUserFolder.CPSUserFolder, line 332, in getUserWithAuthentication
[and so forth]

RuntimeError: maximum recursion depth exceeded (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: hasCommentAction)

Change History

02/21/06 11:59:33 changed by tziade

  • owner changed from jmorliaguet to fguillaume.
  • component changed from CPSPortlets to CPS (global).

this is probably related to an missing export/import that would migrate old acl_users to a new one and fetch all zodb users into a new zodb directory. such portals cannot be upgraded without portal_directory and acl_users profile migration code

02/21/06 12:15:55 changed by tziade

the default conf (3.3.6) acl_user with zodb users needs to be exported, then reimported to fill the zodb members directory

02/21/06 14:54:37 changed by ebarroca

  • owner changed from fguillaume to div.

02/22/06 20:53:44 changed by fguillaume

  • status changed from new to closed.
  • resolution set to fixed.

Fixed through #1433.