OOPS searching because % is not quoted

Bug #476833 reported by Diogo Matsubara
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
High
Brad Crittenden

Bug Description

As seen in OOPS-1406H1587 an IndexError: tuple index out of range is raised when the search term for project groups is a %

Steps to reproduce:
1. Open https://staging.launchpad.net/projectgroups
2. Fill in search project groups a percentage sign: %
3. Click Search project groups
4. OOPS-1406H1587 IndexError: tuple index out of range

Another example, OOPS-1600B1922 with a different exception: ProgrammingError: argument formats can't be mixed

Related branches

Curtis Hovey (sinzui)
Changed in launchpad-registry:
milestone: none → 3.1.11
status: New → Triaged
importance: Undecided → High
Curtis Hovey (sinzui)
Changed in launchpad-registry:
assignee: nobody → Curtis Hovey (sinzui)
Curtis Hovey (sinzui)
Changed in launchpad-registry:
assignee: Curtis Hovey (sinzui) → Brad Crittenden (bac)
Brad Crittenden (bac)
Changed in launchpad-registry:
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: In Progress → Fix Committed
Brad Crittenden (bac)
Changed in launchpad-registry:
status: Fix Committed → Fix Released
Revision history for this message
Curtis Hovey (sinzui) wrote :

The oops that affect blueprints, bugs, and answers are from spammers that started their daily attacked in November of 2009. One proposed fix is to not report oopses caused by bots/windowsnt since we know they are not users.

Changed in blueprint:
status: New → Triaged
importance: Undecided → Low
Changed in malone:
status: New → Triaged
importance: Undecided → Low
Changed in launchpad-answers:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Curtis Hovey (sinzui) wrote :

The common fix will be something like
    if text:
           text = text.replace("%", "%%")

summary: - OOPS searching project groups page
+ OOPS searching because % is not quoted
description: updated
Revision history for this message
Curtis Hovey (sinzui) wrote :

OOPS-1601D2626 shows that translations also has the problem,

Revision history for this message
Данило Шеган (danilo) wrote :

Translations problem is bug 388997 and doesn't seem related: it's caused by linkified URLs in parenthesis which bots (GoogleBot in this case) then follow.

Changed in rosetta:
status: New → Invalid
Curtis Hovey (sinzui)
Changed in launchpad-answers:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.