Purchasing pricetier 0 app for anonymous users fails with a 500

RESOLVED FIXED in 2013-07-04

Status

Marketplace
Consumer Pages
--
major
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: krupa, Assigned: cvan)

Tracking

2013-07-04
Points:
---

Details

(Reporter)

Description

4 years ago
steps to reproduce:
1. Tester is not logged in
2. Find a price tier app on marketplace-dev (https://marketplace-dev.allizom.org/app/test-app-jgkjg/)
3. Click on the purchase button

expected behavior:
user is prompted to sign in within a trusted UI

observed behavior:
Install fails with "Error communicating with the server..."

headers:
03 E/GeckoConsole(  506): Content JS LOG at https://marketplace-dev-cdn.allizom.org/media/fireplace/js/include.js?b=1b0d9ae-51d31264:1 in anonymous: [req] Request failed:  INTERNAL SERVER ERROR
07-02 11:40:33.403 E/GeckoConsole(  506): Content JS LOG at https://marketplace-dev-cdn.allizom.org/media/fireplace/js/include.js?b=1b0d9ae-51d31264:1 in anonymous: [req] Error message:  Cannot assign None: "AddonPurchase.user" does not allow null values.
07-02 11:40:33.403 E/GeckoConsole(  506): Content JS ERROR at https://marketplace-dev-cdn.allizom.org/media/fireplace/js/include.js?b=1b0d9ae-51d31264:1 in anonymous: [install] Error installing app:  Could not generate receipt
(Reporter)

Comment 1

4 years ago
ashes: 537a1
(Assignee)

Updated

4 years ago
Assignee: nobody → cvan
(Assignee)

Comment 2

4 years ago
https://github.com/mozilla/fireplace/commit/3ee43d6
https://github.com/mozilla/fireplace/commit/a87668a

The API should never 500 from bad data - we should probably file separately for that though.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

4 years ago
Now, there is no 500 and the user is logged in but the install doesn't start after logging in.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Reporter)

Comment 4

4 years ago
(In reply to krupa raj[:krupa] from comment #3)
> Now, there is no 500 and the user is logged in but the install doesn't start
> after logging in.

ashes ID: c37e2
(Assignee)

Comment 5

4 years ago
https://github.com/mozilla/fireplace/commit/80353ee
Status: REOPENED → RESOLVED
Last Resolved: 4 years ago4 years ago
Resolution: --- → FIXED

Comment 6

4 years ago
The user is now prompted to sign in via Persona, but the app install fails, and the following message is displayed "Install failed. Please try again later."
Log ID: 9f7a7
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 7

4 years ago
Works for me - can someone verify please?
Status: REOPENED → RESOLVED
Last Resolved: 4 years ago4 years ago
Resolution: --- → FIXED
(Reporter)

Comment 8

4 years ago
wfm too

Iulian, what server were you testing this on and what app did you use?

Comment 9

4 years ago
(In reply to krupa raj[:krupa] from comment #8)
> wfm too
> 
> Iulian, what server were you testing this on and what app did you use?

I used the app from the STR https://marketplace-dev.allizom.org/app/test-app-jgkjg/ on MP-dev app on Unagi
You need to log in before you can comment on or make changes to this bug.