Expected: The image is deleted and appears in the recycle bin.
Actual: There's an alert "there was an error performing the action"
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 187, in transaction_pubevents
Module transaction._manager, line 255, in commit
Module transaction._manager, line 132, in commit
Module transaction._transaction, line 267, in commit
Module transaction._transaction, line 333, in _callBeforeCommitHooks
Module transaction._transaction, line 372, in _call_hooks
Module Products.CMFCore.indexing, line 317, in before_commit
Module Products.CMFCore.indexing, line 227, in process
Module Products.CMFCore.indexing, line 49, in reindex
Module Products.CMFCore.CatalogTool, line 368, in _reindexObject
Module Products.CMFPlone.CatalogTool, line 326, in catalog_object
Module Products.ZCatalog.ZCatalog, line 495, in catalog_object
Module Products.ZCatalog.Catalog, line 337, in catalogObject
Module Products.ZCatalog.Catalog, line 282, in updateMetadata
Module Products.ZCatalog.Catalog, line 415, in recordify
Module plone.indexer.wrapper, line 66, in __getattr__
Module plone.indexer.delegate, line 18, in __call__
Module Products.CMFPlone.image_scales.indexer, line 19, in image_scales
Module Products.CMFPlone.image_scales.adapters, line 30, in __call__
Module plone.volto.behaviors.preview_link, line 78, in __call__
TypeError: ('Could not adapt', None, <InterfaceClass plone.rfc822.interfaces.IPrimaryFieldInfo>)
This is a bug found while testing #4168 (but maybe it is an existing problem).
Steps to reproduce:
Expected: The image is deleted and appears in the recycle bin.
Actual: There's an alert "there was an error performing the action"
In the terminal, there's a traceback: