TraversalError: 'has_matches' OOPS when passing twice a variable in the query
Bug #455803 reported by
Ursula Junque
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.
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
lp://staging/~wallyworld/launchpad/has_matches-opps-querystring
- Henning Eggers (community): Approve
-
Diff: 46 lines (+16/-1)2 files modifiedlib/lp/soyuz/browser/packagesearch.py (+8/-1)
lib/lp/soyuz/browser/tests/distribution-views.txt (+8/-0)
Changed in launchpad-foundations: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in launchpad: | |
importance: | Low → Critical |
Changed in launchpad: | |
assignee: | nobody → Ian Booth (wallyworld) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
milestone: | none → 11.06 |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
OOPS-1958EB142 shows the OOPS has evolved:
Module lp.registry. browser. distribution, line 510, in initialize ionPackageSearc hView, self).initialize() browser. packagesearch, line 22, in initialize
super(Distribut
Module lp.soyuz.
self.text = self.text.strip()
AttributeError: 'list' object has no attribute 'strip'
PackageSearchVi ewBase. initialize should probably validate that the text argument is a string.