Closed Bug 326674 Opened 20 years ago Closed 20 years ago

Punctuation marks/other characters influence sorting of extensions

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwkbugzilla, Assigned: morgamic)

References

()

Details

Attachments

(1 file)

See URL above - Adblock Plus and Diigo Toolbar are shown first in the list because there is a space before the extension name. I think leading spaces should be stripped from the extension's name.
Simple patch. Really simple.
Attachment #211386 - Flags: first-review?
Attachment #211386 - Flags: first-review? → first-review?(mconnor)
Status: NEW → ASSIGNED
Attachment #211386 - Flags: first-review?(mconnor) → first-review+
Ehm... This is a simple patch, all right, but... Do you know that using functions in ORDER BY throws away all optimization the database can give you? Maybe you should consider doing TRIM() on the extension name when it entered into the database...
I agree that we need to keep our DB clean.
Severity: major → normal
Target Milestone: 1.0 → 2.0
Yeah, I realize that, but we can't just change the database because it would cause name comparisons to fail unexpectedly. additem.php should probably run a preg_match() on the extension name when the install.rdf is uploaded for the first time, before it creates the entry in main. If it starts with \s then reject the name. On another note, I wouldn't be opposed to messing up the extensions starting with a space, as they did this intentionally to bolster their position in search results. Maybe that would be prudent.
Just in case: my install.rdf doesn't have any spaces before the extension name (and even if it did - they should be ignored). I simply went to "Edit Adblock Plus" and added them.
Should be fixed shortly, pending a cvs update in bug 328693.
This should be fixed in production. Please verify.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Confirming - fixed. Leading spaces are still in the database, but they are ignored for sorting.
Author of wizz RSS seems to be being a bit sneaky. https://addons.mozilla.org/extensions/showlist.php?application=firefox&numpg=10&category=All "!Wizz RSS News Reader"
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Spaces influence sorting of extensions → Punctuation marks/other characters influence sorting of extensions
Great... wouldn't it be great if all extensions were: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Wizz Newsreader This pretty much just pisses me off. I'll talk to them. After that, I'll consider tightening allowed names in additem.php so people can't take advantage of this BS. Thanks for the heads-up.
Status: REOPENED → ASSIGNED
This isn't an issue anymore (haven't heard complaints, plus the sorting should have been adjusted in v2).
Status: ASSIGNED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → FIXED
AMO BUGSPAM FOR COMPONENT MOVE AND DELETE (FILTER ME)
Component: Listings → Web Site
AMO BUGSPAM FOR QACONTACT FIX (FILTER ME)
QA Contact: listings → web-ui
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: