Closed Bug 882814 Opened 11 years ago Closed 11 years ago

After cancelling the installation of an app the user is not able to install the app

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P2)

x86_64
Windows 7
defect

Tracking

(Not tracked)

VERIFIED FIXED
2013-07-11

People

(Reporter: vikas.nanda, Assigned: basta)

Details

Attachments

(5 files)

Steps to reproduce:

1. Start the application. 
2. Search for a paid app. 
3. Press the price button
4. Enter the pin
5. Confirm the payment. 
6. On the installation screen press cancel. 
7. Notice that the user is not redirected to the app details page
8. If the user searches the app or navigates to my apps they will not be able to install the application. 

Expected behavior:

The user should be able to install the application after they have cancelled installation. 

Observed behavior: 

The user is not able to install the application.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Hey Matt, I am not sure that this is a dupe of bug 834956 . The button state is the correct one(Install), but we are receiving "Error while communicating with server. Please try again later" message when we are trying to install an already purchased app.

I will attach a new set of logs.
This is reproducible for both Poland and Spain so it could be a blocker for payments push for Spain.

Please note that sometimes same error is displayed immediatelly after purchase when installation confirmation page should be automatically displayed.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Attached file Logs 07/02
Hmm, this might be related to the receipt signing nonsense that's been going on lately.

Can you reproduce the issue on dev?

Also, in the future please use the "Submit logs" functionality instead of logcat. The results are much easier to read and provide much more useful information.
Yes , I can reproduce it on -dev and now you have logs as you requested above:
ID : d0f0c
Priority: -- → P2
I don't think it has anything to do with the receipt nonsense and to do with starting the payment flow once its already been paid for. 

1074582776[40304160]: http request [
1074582776[40304160]:   POST /api/v1/webpay/prepare
..
26687144[40304470]: http response [
26687144[40304470]:   HTTP/1.1 403 FORBIDDEN

If an app has already been purchased doing it again will cause a 403.
Component: General → Consumer Pages
After confirming the payment if the user cancels the install and tries to install the app again it will not install and the error message "Error while communication with the server. Try again later" is displayed.
I added a bunch of logging that adds a speculative fix for a timeout issue:

https://github.com/mozilla/fireplace/commit/94a05a61fb65b91b74d9f7b0a5da51aa3483dd40

Can someone please try reproducing this again and submit their logs?

https://github.com/mozilla/fireplace/tree/master/ashes#submitting-logs
Upon trying to reinstall a previously purchased app I hit a 403 @ POST /api/v1/webpay/prepare/?_user=krupa.mozbugs%40gmail.com%2C364ff8700311ff35a4a5a8c3bb0d7924c20d0bcd4e3329cc0052a9209559801caf49ddcbd0505f3d35243c7ef429d0e751fb71957f7c248e7d8f6098d19be6fd%2C7e40f1a17a8245b0b900f483d453da12&carrier=telefonica&dev=firefoxos&device=firefoxos&lang=es&pro=fbdf7fdc.32.1&region=es)

ashes: 5469e
latest ashes: 18804
The 403 issue is a separate issue, I think. Once those ones are cleaned up, this should be easier to debug and test.

In the interim, I think this might be fixed. All the timeouts/intervals are being cleaned up properly now. I'll update this bug with details and harass Krupa to test when the API is un-borked.
Also see bug 882740, which fixes things.
To fix the 403 status code: that's bug 891000. Everything's okay with the POST though.
Assignee: nobody → mattbasta
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-07-11
Attached image screenshot
Attached file ezboot log
Issue still occurs, new screenshot and log added.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Issue no longer occurs, thanks
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
reinstall of purchased apps works fine now. There is an issue with My Apps page which is being tracked elsewhere.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: