collective / collective.solr

Solr search engine integration for Plone
https://pypi.org/project/collective.solr/
22 stars 46 forks source link

Fix deserialization of image_scales metadata when there is no value #356

Closed mpeeters closed 1 year ago

mpeeters commented 1 year ago

This fix the following error when value is Missing.Value :

  Module plone.restapi.search.handler, line 93, in search
  Module plone.restapi.serializer.catalog, line 60, in __call__
  Module plone.restapi.serializer.summary, line 101, in __call__
  Module collective.solr.contentlisting, line 170, in image_scales
  Module collective.solr.flare, line 106, in image_scales
  Module json, line 341, in loads
TypeError: the JSON object must be str, bytes or bytearray, not Missing
davisagli commented 1 year ago

@tisto I tested the fix in our project, works well.