+packagebugs-search crashes when field.sourcepackagename is a non-existent package

Bug #68702 reported by Diogo Matsubara
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Unassigned

Bug Description

    affects /products/malone
    status confirmed

Steps to reproduce (using sample data):
1. Open http://launchpad.dev/people/ubuntu-team/+packagebugs-search?field.distribution=ubuntu&field.sourcepackagename=foo
2. Crash like: OOPS-299A2

field.sourcepackagename must be a existent sourcepackagename. This bug happens
when you change the URL manually; It should raise an UnexpectedFormData.

This URL will recreate the issue on staging:
https://staging.launchpad.net/~xubuntu-team/+packagebugs-search?field.distribution=ubuntu&field.sourcepackagename=fooblah

Module lp.registry.browser.person, line 1934, in current_package
self.widgets['sourcepackagename'].getInputValue()):
Module zope.app.form.browser.widget, line 321, in getInputValue
raise self._error
ConversionError: ('Invalid value', InvalidValue("token u'fooblah' not found in vocabulary"))

The page is already being rendered at this point.

Related branches

Curtis Hovey (sinzui)
Changed in malone:
status: Confirmed → Triaged
importance: Undecided → High
Changed in launchpad:
importance: High → Critical
Curtis Hovey (sinzui)
Changed in launchpad:
milestone: none → 11.03
assignee: nobody → Curtis Hovey (sinzui)
status: Triaged → In Progress
description: updated
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Curtis Hovey (sinzui) → nobody
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.