TraversalError: 'has_matches' OOPS when passing twice a variable in the query

Bug #455803 reported by Ursula Junque
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Ian Booth

Bug Description

As seen on OOPS-1385D1430:
  TraversalError: (<zope.app.publisher.browser.viewmeta.SimpleViewClass from /srv/launchpad.net/production/launchpad-rev-8532/lib/lp/registry/browser/../templates/distribution-search.pt object at 0x2aaab6972190>, 'has_matches')

Gary said: "The traceback says it has trouble finding has_matches. Sometimes that's hiding a lower problem, but the implementation of ``has_matches`` is simply ``return self.matches > 0``. Maybe self.matches is a property that is being confused by the query string, but that's as far down the rabbit hole as I'm going right now."

Related branches

Gary Poster (gary)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
Changed in launchpad:
importance: Low → Critical
Revision history for this message
William Grant (wgrant) wrote :

OOPS-1958EB142 shows the OOPS has evolved:

Module lp.registry.browser.distribution, line 510, in initialize
super(DistributionPackageSearchView, self).initialize()
Module lp.soyuz.browser.packagesearch, line 22, in initialize
self.text = self.text.strip()
AttributeError: 'list' object has no attribute 'strip'

PackageSearchViewBase.initialize should probably validate that the text argument is a string.

Ian Booth (wallyworld)
Changed in launchpad:
assignee: nobody → Ian Booth (wallyworld)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
Changed in launchpad:
milestone: none → 11.06
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → 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.