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)

defect
Not set
normal

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.
Do we even still need this check? When is the single-domain requirement going away?
For now the one-app-per-Origin (not per domain) restriction persists.
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.
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).
Is there any way to uniquely identify a packaged app then?
Not when you just have the package. Would you need that?
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?
(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 :)
Well, for updates we keep track of the download url. I guess this could be used also to blocklist.
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.
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.
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: nobody → robhudson.mozbugs
Target Milestone: --- → 2012-08-23
You need to log in before you can comment on or make changes to this bug.