[sdk] App exits immediately on errors

Bug #1333394 reported by Rodney Dawes on 2014-06-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UX
Medium
Olga Kemmet
pay-ui
High
Diego Sarmentero

Bug Description

When there is an error talking to the server, the app exists immediately. This is a bit disconcerting for the user, as it results in an app opening and immediately closing, thus giving the appearance of a crash. Instead, the app should be displaying an error message of some sort, asking them to try again later in the case of 500 errors from the server, or to explain that the requested product could not be found on the server, if a 404 happens when trying to get the package details.

The current behavior also makes it much more difficult to test the full work flow of purchasing an app, as pay-service and libpay do not expose any error state. To the user, this means the app effectively crashed and it's not possible to buy anything on the store.

-- SOLUTION --
Please use the attached error message for apps requiring Network connection and receiving a 5xx or 4xx HTTP error

Related branches

lp:~diegosarmentero/pay-ui/pay-errors
Alejandro J. Cura: Approve on 2014-07-03
Rodney Dawes: Approve on 2014-07-03
PS Jenkins bot: Approve (continuous-integration) on 2014-07-03
Mike Nagle (mikenagle) on 2014-06-24
summary: - App exits immediately on errors
+ [apps] App exits immediately on errors
Changed in ubuntu-ux:
assignee: nobody → Benjamin Keyser (bjkeyser)

This also happens if one is trying to talk to the staging server, but has production credentials.

Rodney Dawes (dobey) on 2014-07-03
Changed in pay-ui:
status: New → In Progress
assignee: nobody → Diego Sarmentero (diegosarmentero)
importance: Undecided → High
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:pay-ui at revision 5, scheduled for release in pay-ui, milestone Unknown

Changed in pay-ui:
status: In Progress → Fix Committed
John Lea (johnlea) on 2014-07-21
summary: - [apps] App exits immediately on errors
+ [sdk] App exits immediately on errors
Changed in ubuntu-ux:
assignee: Benjamin Keyser (bjkeyser) → Giorgio Venturi (giorgio-venturi)
importance: Undecided → Medium
status: New → Triaged
Rodney Dawes (dobey) on 2014-07-31
Changed in pay-ui:
status: Fix Committed → Fix Released

-- SOLUTION --

Please use the attached error message for apps requiring Network connection and receiving a 5xx or 4xx HTTP error

description: updated
Changed in ubuntu-ux:
status: Triaged → Fix Committed
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → Olga Kemmet (olga-kemmet)
Rodney Dawes (dobey) on 2015-08-11
Changed in ubuntu-ux:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers