Assets with the same id as their containing folders problematic on export

Bug #133882 reported by Eric Casteleijn
0
Affects Status Importance Assigned to Milestone
Silva
Fix Released
Undecided
Sylvain Viollon

Bug Description

When doing a full media export of a Silva Folder containing an asset (tested with image) with the same id, Zope acquisition messes up, and an asset adapter is looked up for the folder, which fails.

traceback:

Exception Type TypeError
Exception Value ('Could not adapt', <Silva Folder instance ibm>, <InterfaceClass Products.Silva.adapters.interfaces.IAssetData>)

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.FileSystemSite.FSPythonScript, line 108, in __call__
    * Module Shared.DC.Scripts.Bindings, line 313, in __call__
    * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
    * Module Products.FileSystemSite.FSPythonScript, line 164, in _exec
    * Module None, line 25, in download_fullmedia_selected
      <FSPythonScript at /wuw/service_views/Silva/edit/Container/download_fullmedia_selected used for /wuw/service_views/Silva/edit/Container/Folder>
      Line 25
    * Module Products.Silva.SilvaObject, line 455, in get_zip
    * Module Products.Silva.adapters.zipfileexport, line 43, in exportToZip

TypeError: ('Could not adapt', <Silva Folder instance ibm>, <InterfaceClass Products.Silva.adapters.interfaces.IAssetData>)

Changed in silva:
assignee: nobody → thisfred
Changed in silva:
milestone: 2.0 → none
Changed in silva:
assignee: thisfred → wim-boucquaert
Revision history for this message
Sylvain Viollon (thefunny) wrote :

This have been fixed during the XML import/export cleanup.

Changed in silva:
assignee: Wim Boucquaert (wim-boucquaert) → Sylvain Viollon (thefunny)
milestone: none → 2.3
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.