Closed Bug 292670 Opened 20 years ago Closed 20 years ago

Update service should not accept forward slashes in extension names

Categories

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

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 291562

People

(Reporter: rflint, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

When uploading an extension with a forward slash (/), the path to the file in
the approval queue is read as a directory.
Example:
Extension Foo/Bar 1.0 is entered into the queue as
/opt/update-files/approval/foo/bar-1.0.xpi 

Reproducible: Always

Steps to Reproduce:
1.Create an extension name containing a forward slash
2.Upload to UMO
3.Attempt to edit or approve extension

Actual Results:  
rename(/opt/update-files/temp/foo_bar_1.0.xpi,/opt/update-files/approval/foo/bar.xpi):
No such file or directory in /opt/update/developers/additem.php on line 649
File foo/bar.xpi saved to disk...
Process Complete...

Expected Results:  
Alert on invalid character

*** This bug has been marked as a duplicate of 291562 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
AMO BUGSPAM FOR COMPONENT MOVE AND DELETE (FILTER ME)
Component: Listings → Web Site
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.