search for -FOO alone causes a timeout and might be better as a substring search
Bug #237315 reported by
Markus Korn
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Unassigned |
Bug Description
I get a reproducible OOPS (Error ID: OOPS-1842M1109) when trying to search for '-de' in the 'Select a Person or Team'-popup.
steps to reproduce:
* open +addsubscriber of a bugreport
* click on 'choose...'
* search for '-de'
My idea was to search for the german translation team in ubuntu
Markus
Changed in launchpad: | |
status: | New → Confirmed |
Changed in launchpad: | |
assignee: | stub → nobody |
importance: | Undecided → Wishlist |
status: | Confirmed → Incomplete |
affects: | launchpad-foundations → launchpad-registry |
Changed in launchpad-registry: | |
importance: | Medium → Low |
summary: |
- OOPS in 'person or team' search + leading dash escaped in 'person or team' search |
summary: |
- leading dash escaped in 'person or team' search + search for -FOO alone causes a timeout and might be better as a + substring search |
Changed in launchpad-registry: | |
milestone: | none → series-future |
tags: | added: pg83 |
Changed in launchpad: | |
importance: | High → Critical |
description: | updated |
To post a comment you must log in.
This timeout happens because tsearch2 interprets '-de' as !'de' (meaning any person/team whose name/email doesn't contain the string 'de' will match). That's why it takes so long and times out -- there are nearly 2 billion people/teams which match that query for '-de'.
It may be possible to escape that '-' so that it's not interpreted as '!', but I don't know how. Any ideas, Stuart?