When "webapps-unique-by-domain" is enabled, package app submission fails

RESOLVED FIXED in 2012-08-23

Status

Marketplace
Developer Pages
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: robhudson, Assigned: robhudson)

Tracking

2012-08-23
Points:
---

Details

(Assignee)

Description

6 years ago
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.
(Assignee)

Comment 3

6 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.
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

6 years ago
Is there any way to uniquely identify a packaged app then?
Not when you just have the package. Would you need that?

Comment 7

6 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

6 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 :)
Well, for updates we keep track of the download url. I guess this could be used also to blocklist.

Comment 10

6 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

6 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

6 years ago
This commit bypasses the unique origin checking we do for hosted apps:
https://github.com/mozilla/zamboni/commit/134de78
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Assignee)

Updated

6 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.