Closed Bug 518725 Opened 16 years ago Closed 16 years ago

Lack of URL encoding when searching for add-ons with tags

Categories

(addons.mozilla.org Graveyard :: Search, defect, P2)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: davedash)

References

()

Details

Attachments

(1 file, 2 obsolete files)

steps to reproduce: 1.Add "!=" as a tag to any add-on(counterpixel) 2.Search for the name of that add-on 3.In the Search results page,click on the associated tag observed behavior: A blank page loads.500-Internal Server Error due to lack URL encoding
As per discussion with Dave Dash on IRC,moving this bug to 5.2
Target Milestone: 5.1 → 5.2
As per discussion with Wil Clouser on IRC,moving this bug back to 5.1
Target Milestone: 5.2 → 5.1
Target Milestone: 5.1 → 5.2
Priority: -- → P2
Target Milestone: 5.2 → 5.3
Attached patch v1 (obsolete) — Splinter Review
urlencoded stuff, and validated tags in the search module better.
Attachment #407172 - Flags: review?(clouserw)
Hmm. There is a reason I didn't do this back in the day. Perhaps it will come to me in a dream tonight.
Attachment #407172 - Flags: review?(clouserw) → review-
Comment on attachment 407172 [details] [diff] [review] v1 Ah, because % is in invalid char when searching for tags (bug 503490). With this patch I'm seeing fatal errors and stack traces with tags that aren't ascii (e.g. モジラ), and some that are, (anything with } or . in it). % problems aside, if you're going to use a regex for invalid chars, you should be using the existing INVALID_TAG_CHARS
Attached patch v2 (obsolete) — Splinter Review
Using INVALID_something_something
Attachment #407172 - Attachment is obsolete: true
Attachment #407373 - Flags: review?(clouserw)
Attachment #407373 - Flags: review?(clouserw) → review+
Comment on attachment 407373 [details] [diff] [review] v2 I'll r+, please fix the grammar in "String does matches: " I don't get a server error, but I don't get search results either. Just "No results found." Was the patch supposed to return correct results too?
Did you reindex after you did the UTF-8 fixes? For me to self-verify I tagged something in Japanese, reindexed, searched clicked on the tag and saw the result.
Enjoy: ------------------------------------------------------------------------ r53893 | ddash@mozilla.com | 2009-10-21 14:18:48 -0700 (Wed, 21 Oct 2009) | 2 lin [bug 518725] Fixed a grammar error ------------------------------------------------------------------------ r53892 | ddash@mozilla.com | 2009-10-21 14:18:45 -0700 (Wed, 21 Oct 2009) | 2 lin [bug 518725] using IGNORE_TAG_CHARS ------------------------------------------------------------------------ r53891 | ddash@mozilla.com | 2009-10-21 14:18:42 -0700 (Wed, 21 Oct 2009) | 2 lin [bug 518725] Urlencoding
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Aah, pesky reindexing. I did not.
Component: Public Pages → Search
Whiteboard: needs-selenium
Whiteboard: needs-selenium
STR: 1.go to firebug add-on details page 2.Add "!=" as a tag 3.Wait for > 10 mins.(sufficient time for Cron to run) 4.Go to firebugadd-ons details page 5.Click on the "!=" tag. expected results: All add-ons associated with that tag are listed(firebug) URL:https://preview.addons.mozilla.org/en-US/firefox/tag/!= actual results: No result found screencast: http://screencast.com/t/5W2WhPc3
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch v3Splinter Review
The actual tag page should server results from sphinx, not the old Search component. -d
Attachment #407373 - Attachment is obsolete: true
Attachment #409815 - Flags: review?(clouserw)
Attachment #409815 - Flags: review?(clouserw) → review+
Take that Krupa! r54890 | ddash@mozilla.com | 2009-11-02 16:22:11 -0800 (Mon, 02 Nov 2009) | 2 li [bug 518725] Using sphixn to serve tags pages... like Delicious all overa gain
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
https://preview.addons.mozilla.org/en-US/firefox/tag/!= gives me two results, both of which have that tag, so it's looking good. It's Krupa's bug, so she should have the honors (and, nice find!)
Verified FIXED.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: