Importing closed content fails

Bug #1174670 reported by Kit Blake on 2013-04-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Silva
High
Sylvain Viollon

Bug Description

When versioned content is in a closed state and gets exported, the import fails with:

KeyError: '1'

Stacktrace (most recent call last):
...
  File "sprout/saxext/hookablehandler.py", line 50, in _warp
    getattr(self._parent, method_name)(*args, **kw)
  File "sprout/saxext/xmlimport.py", line 280, in endElementNS
    handler.endElementNS(name, qname)
  File "home/infrae/infrae30-prod2/lib/silva.app.document-3.0-py2.7.egg/silva/app/document/silvaxml/xmlimport.py", line 50, in endElementNS
    self.storeWorkflow()
  File "home/infrae/infrae30-prod2/lib/silva.core.xml-3.0-py2.7.egg/silva/core/xml/handlers.py", line 154, in storeWorkflow
    version_id)
  File "home/infrae/infrae30-prod2/lib/silva.core.xml-3.0-py2.7.egg/silva/core/xml/handlers.py", line 148, in getWorkflowVersion
    return self.parentHandler()._workflow[version_id]

Sylvain Viollon (thefunny) wrote :

The export of closed content is now fixed and tested so importing them works. Note: You can read this as the export of closed content failed, not the import, so you need to make a new export of your content in order to import it.

Changed in silva:
status: New → Fix Committed
Changed in silva:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers