Ticket #13999 (closed Bug: fixed)

Opened 14 months ago

Last modified 14 months ago

Internal server error "AttributeError: 'list' object has no attribute 'get'" if Plone 3 advanced search parameters are used on Plone 4

Reported by: anthonygerrard Owned by:
Priority: minor Milestone: 4.x
Component: Unknown Version: 4.3
Keywords: Cc:

Description (last modified by anthonygerrard) (diff)

This happens if sites link to the results of a particular search and then you upgrade.

Example query string that was breaking:

/search?SearchableText=jobs&Title=Human+resource+assistant&Subject_usage:ignore_empty=&Description=&created:list:date=1970/02/01&created_usage=range:min&submit=Search

I have a fix prepared for this already

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x1429baf4>,
       'request': <HTTPRequest, URL=http://www.soschildrensvillages.org.uk/search>,
       'root': <Application at >,
       'template': <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0xd7564cc>,
       'traverse_subpath': [],
       'user': <SpecialUser 'Anonymous User'>,
       'view': <Products.Five.metaclass.SimpleViewClass from /home/zopecms/home/eggs/soschildrensvillages-2.0b11-py2.7.egg/soschildrensvillages/theme/browser/search.pt object at 0x2570b04c>,
       'views': <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x256e9a0c>}

  Module zope.tales.pythonexpr, line 59, in __call__
   - __traceback_info__: ( view.results(b_start=b_start))
  Module <string>, line 1, in <module>
  Module plone.app.search.browser, line 47, in results
  Module plone.app.search.browser, line 89, in filter_query
AttributeError: 'list' object has no attribute 'get'

Change History

comment:1 Changed 14 months ago by anthonygerrard

  • Description modified (diff)
  • Summary changed from Internal server error if Plone 3 advanced search parameters are used on Plone 4 to Internal server error "AttributeError: 'list' object has no attribute 'get'" if Plone 3 advanced search parameters are used on Plone 4

Added traceback

comment:2 Changed 14 months ago by anthonygerrard

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.