Closed
Bug 1201497
Opened 10 years ago
Closed 1 year ago
Theme URL is not automatically modified when trying to submit a Theme with the same name as an Addon
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
2015-09-03
People
(Reporter: vvalentina, Assigned: venkid, Mentored)
Details
(Keywords: good-first-bug)
Steps to reproduce:
1. Load AMO-dev page https://addons-dev.allizom.org/en-US/firefox/
2. Go to Tools->Submit a New Theme
3. Give the theme the same name as an already submitted addon (i.e. same_name)
Expected results:
The theme can be submitted. The theme's slug is automatically modified (like in the case of search tool/dictionaries; an “-1”/”-2” etc., is added at the end of the URL)
Actual results:
The slug must be manually changed.
Notes/Issues:
Verified on FF40(Win 7). Issue is reproducing on AMO-stage, dev and prod.
Please see the screenshots: http://screencast.com/t/xUDq2iC83Yps
Comment 1•10 years ago
|
||
When submitting a standard add-on, the slug is cleaned and has a suffix appended if it already exists using https://github.com/mozilla/olympia/blob/5bdfd54723ee13fccc452d95de7eeeeb6e2f1cce/apps/addons/models.py#L55
It seems that's not done for themes.
Whiteboard: [good first bug]
Updated•10 years ago
|
Mentor: magopian
Hi I'd like to start on fixing my first bug. If anyone can give my some guidance, that'd be awesome
Comment 3•10 years ago
|
||
The "clean_slug" helper linked above is used in the Addon.save() method (see https://github.com/mozilla/olympia/blob/5bdfd54723ee13fccc452d95de7eeeeb6e2f1cce/apps/addons/models.py#L405). My first attempt would be to create a save() method on the Persona model, with a call to "clean_slug", and check to see if that fixes it.
Comment 4•9 years ago
|
||
Assigning to Deepthi as his first goodfirstbug--welcome! Please comment here with any questions.
Assignee: nobody → deepthivenkitaramanan
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
Updated•5 years ago
|
Keywords: good-first-bug
Whiteboard: [good first bug]
You need to log in
before you can comment on or make changes to this bug.
Description
•