Ticket #1650 (new defect)

Opened 13 years ago

Last modified 8 years ago

ZMI copy/paste or zexp-import of CPS instances broken

Reported by: sfermigier Owned by: fguillaume
Priority: P2 Milestone: CPS 3.6.1
Component: CPSCore Version: 3.3.3
Severity: normal Keywords:


Here is the trackback when either pasting a CPS instance that has been copied in the buffer, or when importing it from a zexp:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module OFS.ObjectManager, line 543, in manage_importObject
  Module OFS.ObjectManager, line 565, in _importObjectFromFile
  Module OFS.ObjectManager, line 276, in _setObject
  Module Products.CPSCore.PatchCMFCatalogAware, line 42, in manage_afterAdd
  Module Products.CMFCore.CMFCatalogAware, line 169, in manage_afterAdd
  Module Products.CMFCore.CMFCatalogAware, line 205, in __recurse
  Module Products.CPSCore.PatchCMFCatalogAware, line 40, in manage_afterAdd
  Module Products.CPSCore.EventServicePatches, line 31, in notify
  Module Products.CPSCore.EventServiceTool, line 231, in notify
  Module Products.CPSCore.ProxyTool, line 860, in notify_proxy
  Module Products.CPSCore.ProxyTool, line 781, in _addProxy
ValueError: workspaces

Change History

comment:1 Changed 13 years ago by sfermigier

  • Version changed from 3.4.0 to 3.3.3

Well this applies to an old CPS instance (CPS 3.3.3) and needs to be confirmed first on a recent one.

comment:2 Changed 8 years ago by gracinet

  • Milestone changed from CPS 3.5.3 to CPS 3.5.4

comment:3 Changed 8 years ago by gracinet

Still true for other reasons (copy-paste here):

2011-09-25 19:09:33 ERROR ZODB.Connection Couldn't load state for 0x17e58b
Traceback (most recent call last):
  File "/opt/Zope-2.10/lib/python/ZODB/Connection.py", line 761, in setstate
  File "/opt/Zope-2.10/lib/python/ZODB/Connection.py", line 819, in _setstate
    self._reader.setGhostState(obj, p)
  File "/opt/Zope-2.10/lib/python/ZODB/serialize.py", line 605, in setGhostState
  File "/opt/Zope-2.10/lib/python/Products/PageTemplates/ZopePageTemplate.py", line 420, in __setstate__
  File "/opt/Zope-2.10/lib/python/Products/PageTemplates/utils.py", line 68, in convertToUnicode
    return unicode(source, encoding), encoding
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 6764-6766: invalid data

Lots of people have unicode problems with zexp import of parts of a portal. OTOH, zexp is not encouraged (but can be the only available way of moving things between two portals).

comment:4 Changed 8 years ago by gracinet

  • Milestone changed from CPS 3.5.4 to CPS 3.6

should be check against a more recent Zope

Note: See TracTickets for help on using tickets.