Closed
Bug 536395
Opened 15 years ago
Closed 15 years ago
Upload failure causes add-on to not appear on dev hub and impossible to upload again with same GUID
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect, P2)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
RESOLVED
FIXED
5.5
People
(Reporter: jorgev, Assigned: u278084)
References
Details
(Whiteboard: [ReviewTeam])
Attachments
(2 files)
|
8.91 KB,
application/x-xpinstall
|
Details | |
|
1.87 KB,
patch
|
wenzel
:
review+
|
Details | Diff | Splinter Review |
This has been reported multiple times in the past few days, and I was able to reproduce it in preview with the attached XPI.
Steps to reproduce:
1) Download attached XPI and change its GUID.
2) Submit this XPI to preview as a new add-on.
3) In the last step, where the author is informed the add-on is Incomplete, the edit button points to a URL ending in 'null', making it impossible to reach the edit page. Also, the add-on doesn't appear on the Developer Hub.
4) Try to submit the add-on again.
5) You get the "duplicate id" error.
I haven't found a way to figure the add-on ids in order to assign them back to their original authors, so they are all blocked from using them in any way.
I am very much afraid that this problem is caused by the line "<em:homepageURL></em:homepageURL>" in install.rdf. When I removed it, I could do a successful upload.
However, if you changed something in the server software during last 12 hours, the problem might have been fixed without my removal of this line. As I do not know how to DELETE an add-on I have submitted, I do not try to test this system: I could end up with having several tens of needless add-ons.
You cannot delete an add-on you have submitted. However, you are right. It is caused by empty homepageURL.
What happens is that our RDF library inserts a attribute into the empty field. Something like #genid. When we go to save the Add-on, it will fail because we have validation in place to make sure it's a valid url. But, we don't check that it failed. Instead, we continue on our merry way, and set the add-on id to null and continue on like nothing ever happened.
Since I landed myself a big headache trying to figure it out, I might as well get the pleasure of fixing it. It won't be a hard bug to fix.
We should probably ignore empty elements completely. But that requires looking into the RDF code. What I will likely do is send messages back complaining about an invalid homepage, or whatever other attribute can fail.
Assignee: nobody → a.sacred.line+bugzilla
Status: NEW → ASSIGNED
| Reporter | ||
Comment 3•15 years ago
|
||
I'm not familiar with this code, but I think it'd be great that even when unexpected errors like this occur, one of two things happen:
1) The operation is canceled completely and no trace of the add-on remains.
2) The incomplete add-on is created and associated with the author account.
(In reply to comment #3)
> 1) The operation is canceled completely and no trace of the add-on remains.
Yeah!! It would be nice to have a ROLLBACK function!!!!!!!!!!!!!!
Great idea!!!!!!!!!
Bye!!!!!!!!!!!!!!
Bee!!!!!!!
This patch fixes it, as well as any other empty tag error (such as invalid e-mail address). It breaks flow a bit, since now it will ask you to re-upload the file after validation is done. But I don't see a better way of doing it.
Attachment #419864 -
Flags: review?
Attachment #419864 -
Flags: review? → review?(fwenzel)
If everything was OK with my file, if no empty tags were present, then will it ask to upload it again? If not, then this solution is all right.
Comment 7•15 years ago
|
||
Comment on attachment 419864 [details] [diff] [review]
check the return value
That works for me, good job.
Attachment #419864 -
Flags: review?(fwenzel) → review+
Comment 8•15 years ago
|
||
(In reply to comment #6)
> If everything was OK with my file, if no empty tags were present, then will it
> ask to upload it again? If not, then this solution is all right.
Yes, that's the plan.
In r58934. L10N fixes still need to be checked-in separately.
Comment 10•15 years ago
|
||
Closing due to comment 9. Thanks everyone
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Keywords: push-needed
Updated•15 years ago
|
Keywords: push-needed
| Reporter | ||
Comment 13•13 years ago
|
||
Reclassifying editor bugs and changing to a new whiteboard flag. Spam, spam, spam, spam...
Whiteboard: [required amo-editors] → [ReviewTeam]
Updated•9 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
•