Skip to content

Imagecropping breaks resapi search (full objects) #104

Description

@espenmn
  1. Install plone restapi on a new site
  2. Search for 'https://{url}/@search?portal_type=News%20Item&fullobjects=1'

You get the correct
3) Install ImageCropping on same site
4) Search for 'https://{url}/@search?portal_type=News%20Item&fullobjects=1'

Produces the following error(see below):
Tested on 3 different setups, last: 5.2.2 and plone.restapi-6.13.7

Traceback (innermost last):
 Module ZPublisher.WSGIPublisher, line 156, in transaction_pubevents
 Module ZPublisher.WSGIPublisher, line 338, in publish_module
 Module ZPublisher.WSGIPublisher, line 256, in publish
 Module ZPublisher.mapply, line 85, in mapply
 Module ZPublisher.WSGIPublisher, line 62, in call_object
 Module plone.rest.service, line 22, in __call__
 Module plone.restapi.services, line 21, in render
 Module plone.restapi.services.search.get, line 11, in reply
 Module plone.restapi.search.handler, line 86, in search
 Module plone.restapi.serializer.catalog, line 38, in __call__
 Module plone.restapi.serializer.dxcontent, line 83, in __call__
 Module plone.restapi.serializer.dxfields, line 86, in __call__
 Module plone.restapi.imaging, line 26, in get_scales
 Module plone.restapi.imaging, line 112, in get_scale_infos
  Module plone.restapi.imaging, line 108, in split_scale_info

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions