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)
Tracking
(Not tracked)
VERIFIED
FIXED
5.3
People
(Reporter: krupa.mozbugs, Assigned: davedash)
References
()
Details
Attachments
(1 file, 2 obsolete files)
|
4.60 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
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
| Reporter | ||
Comment 1•16 years ago
|
||
Internal server error on using mirroring character of unicode in tag
https://preview.addons.mozilla.org/en-US/firefox/search?q=wmlbrowser&appid=1&cat=0,0&tag=%28%E2%80%AE%E2%80%AE%28&atype=-1&pid=-1&lup=&sort=&lver=-1&pp=20
| Reporter | ||
Comment 2•16 years ago
|
||
As per discussion with Dave Dash on IRC,moving this bug to 5.2
Target Milestone: 5.1 → 5.2
| Reporter | ||
Comment 3•16 years ago
|
||
As per discussion with Wil Clouser on IRC,moving this bug back to 5.1
Target Milestone: 5.2 → 5.1
Updated•16 years ago
|
Target Milestone: 5.1 → 5.2
Updated•16 years ago
|
Priority: -- → P2
Updated•16 years ago
|
Target Milestone: 5.2 → 5.3
| Assignee | ||
Comment 4•16 years ago
|
||
urlencoded stuff, and validated tags in the search module better.
Attachment #407172 -
Flags: review?(clouserw)
Comment 5•16 years ago
|
||
Hmm. There is a reason I didn't do this back in the day. Perhaps it will come to me in a dream tonight.
Updated•16 years ago
|
Attachment #407172 -
Flags: review?(clouserw) → review-
Comment 6•16 years ago
|
||
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
| Assignee | ||
Comment 7•16 years ago
|
||
Using INVALID_something_something
Attachment #407172 -
Attachment is obsolete: true
Attachment #407373 -
Flags: review?(clouserw)
Updated•16 years ago
|
Attachment #407373 -
Flags: review?(clouserw) → review+
Comment 8•16 years ago
|
||
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?
| Assignee | ||
Comment 9•16 years ago
|
||
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.
| Assignee | ||
Comment 10•16 years ago
|
||
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
Comment 11•16 years ago
|
||
Aah, pesky reindexing. I did not.
Updated•16 years ago
|
Component: Public Pages → Search
Whiteboard: needs-selenium
Updated•16 years ago
|
Flags: in-testsuite?
Updated•16 years ago
|
Whiteboard: needs-selenium
| Reporter | ||
Comment 12•16 years ago
|
||
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 → ---
| Assignee | ||
Comment 13•16 years ago
|
||
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)
Updated•16 years ago
|
Attachment #409815 -
Flags: review?(clouserw) → review+
| Assignee | ||
Comment 14•16 years ago
|
||
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 ago → 16 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
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•