Closed Bug 869675 Opened 12 years ago Closed 12 years ago

Receipts API endpoint throws 403 when installing apps that have previously been installed.

Categories

(Marketplace Graveyard :: API, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-05-16

People

(Reporter: krupa.mozbugs, Assigned: chuck)

References

Details

(Whiteboard: [fireplace])

steps to reproduce: 1. Launch marketplace-altdev on your firefox OS phone 2. Tester is signed in 3. Install free apps like Twitter and Soundcloud 4. Navigate to Settings->My Apps expected behavior: installed apps get listed under My Apps observed behavior: My Apps has no apps listed
What happens if you relaunch the app?
Flags: needinfo?(krupa.mozbugs)
Is it that they don't show up immediately or that they never show up at all?
This also looks like a dupe of bug 869675.
(In reply to Christopher Van Wiemeersch [:cvan] from comment #5) > Dupe of bug 865617. I filed a separate bug since it was Fireplace. I cannot log in anymore due to bug 870025. SO cannot answer the question from comment 3
Flags: needinfo?(krupa.mozbugs)
I still don't see my installed apps on my Firefox OS phone
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee: nobody → mattbasta
Target Milestone: --- → 2013-05-09
I observed a regression when I verified this bug https://marketplace-dev.allizom.org. I installed little alchemy app and then after a refresh , I opened "My Apps" and the newly installed app was listed , but the install button state is "Free" instead of "Launch". Also, when pressing the free button an "Install Failed. Please try again later" message is displayed : http://screencast.com/t/f5Rwdlkro
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
The API is returning a 403 Forbidden with a null response when I attempt to install an app from the My Apps page. It seems that the API will do this any time you try to post an install for an app that you've already installed.
Assignee: mattbasta → nobody
Component: Consumer Pages → API
Apps that have previously been installed contain the following user object: { developed: false, installed: false, purchased: false } If the app is on the My Apps page, clearly this information is wrong.
Priority: -- → P1
Target Milestone: 2013-05-09 → 2013-05-16
Summary: Installed apps don't show up under "My Apps" → Receipts API endpoint throws 403 when installing apps that have previously been installed.
Assignee: nobody → charmston
Hmm, I've got a test for specifically that case: https://github.com/mozilla/zamboni/blob/master/mkt/receipts/tests/test_api.py#L201 And in testing, I wasn't able to reproduce this.
Found it, passing a user not a user profile. Didn't want to do it right now, but we should raise TypeErrors if someone does that, not return False. https://github.com/mozilla/zamboni/commit/c09d73
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Confirmed for me on -dev: {"developed": false, "installed": true, "purchased": false}
You need to log in before you can comment on or make changes to this bug.