UnicodeEncodeError in search_text field

Bug #644872 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Henning Eggers

Bug Description

OOPS-1725N43 was caused when the matching FAQ search failed, though the search for questions seceded:

   - /srv/launchpad.net/production/launchpad-rev-9771/lib/lp/answers/browser/../templates/question-listing.pt
   - Line 97, Column 4
   - Expression: <PathExpr standard:u'view/matching_faqs_url'>
 ...
   - __traceback_info__: (<zope.browserpage.metaconfigure.SearchQuestionsView object at 0x1048a090>, 'matching_faqs_url')
  Module zope.traversing.adapters, line 44, in traverse
    attr = getattr(subject, name, _marker)
   - __traceback_info__: (<zope.browserpage.metaconfigure.SearchQuestionsView object at 0x1048a090>, 'matching_faqs_url', [])
  Module lp.answers.browser.questiontarget, line 452, in matching_faqs_url
    'field.actions.search': 'Search',
  Module urllib, line 1267, in urlencode
    v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\\xb4' in position 3: ordinal not in range(128)

PATH_INFO: /ubuntu/+questions
QUERY_STRING: field.search_text=can%C2%B4t+start+ubuntu&field.sort=RELEVANCY&field.sort-empty-marker=1&field.ac ... eld.language-empty-marker=1&field.status=ANSWERED&field.status=SOLVED&field.status-empty-marker=1

Related branches

Revision history for this message
Curtis Hovey (sinzui) wrote :

The most recent occurrence: OOPS-1741L1960

Curtis Hovey (sinzui)
tags: added: faqs
Changed in launchpad:
importance: High → Critical
Curtis Hovey (sinzui)
Changed in launchpad:
status: Triaged → Fix Released
Revision history for this message
Curtis Hovey (sinzui) wrote :

To test this, visit the the answer page for any project.
Search for portugu%88s

Changed in launchpad:
status: Fix Released → Triaged
Revision history for this message
Curtis Hovey (sinzui) wrote :

Sorry, bad instructions. To reproduce this oops, hack the url and set the search_text to "portugu%88s"

Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Henning Eggers (henninge)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.05
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Robert Collins (lifeless) wrote :

answers search still works.

tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Henning Eggers (henninge) wrote :

That and more importantly I can now search for "português" without seeing an OOPS. ;-)

Curtis Hovey (sinzui)
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.