Closed
Bug 783471
Opened 12 years ago
Closed 12 years ago
When "webapps-unique-by-domain" is enabled, package app submission fails
Categories
(Marketplace Graveyard :: Developer Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2012-08-23
People
(Reporter: robhudson, Assigned: robhudson)
References
Details
The form error is, "An app already exists on this domain; only one app per domain is allowed." Packaged apps shouldn't be checking for unique by domain at all.
Comment 1•12 years ago
|
||
Do we even still need this check? When is the single-domain requirement going away?
Comment 2•12 years ago
|
||
For now the one-app-per-Origin (not per domain) restriction persists.
Assignee | ||
Comment 3•12 years ago
|
||
via bwalker in IRC, "for now, the one-app-per-origin restriction persists. but then, we have the philosophical question, "what is the origin of a packaged app?" I'll fix the code so packaged apps don't hit the same origin check we do for hosted apps at least. Doing something more later for checking *something* for packaged apps can be another bug.
Comment 4•12 years ago
|
||
There's no user-facing origin for a packaged app, so you should not check that in the marketplace. (We generate a randomized one on the gecko side, but that's an implementation detail).
Comment 5•12 years ago
|
||
Is there any way to uniquely identify a packaged app then?
Comment 6•12 years ago
|
||
Not when you just have the package. Would you need that?
Comment 7•12 years ago
|
||
How do we identify it for an update? Would we ever want to blocklist a packaged app? If the app is deleted or removed from the marketplace, can one replace it?
Comment 8•12 years ago
|
||
(In reply to Andy McKay [:andym] from comment #7) > How do we identify it for an update? > Would we ever want to blocklist a packaged app? > If the app is deleted or removed from the marketplace, can one replace it? I filed bug 784199 to decide that :)
Comment 9•12 years ago
|
||
Well, for updates we keep track of the download url. I guess this could be used also to blocklist.
Comment 10•12 years ago
|
||
Sadly, URLs aren't guaranteed to be constant for a few reasons. For receipts we use a unique ID that is known to the marketplace. That wouldn't stop people uploading the same packaged app multiple times though.
Comment 11•12 years ago
|
||
https://etherpad.mozilla.org/packaged-apps - What if app disappears from the marketplace and phone looks for an update? bsmith: I imagine it will just look like "no update available." What if a new app takes its place? bsmith: Apps are considered the "same app" if the app ID matches. And a few more comments below.
Assignee | ||
Comment 12•12 years ago
|
||
This commit bypasses the unique origin checking we do for hosted apps: https://github.com/mozilla/zamboni/commit/134de78
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → robhudson.mozbugs
Target Milestone: --- → 2012-08-23
You need to log in
before you can comment on or make changes to this bug.
Description
•