failure_reason is not returned
Bug #632361 reported by
Michael Vogt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Software Center Agent |
Fix Released
|
Low
|
Unassigned | ||
software-center (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In https:/
"""
if the transaction was unsuccessful, the other attributes are unnecessary, but an extra "failure_reason" can be returned and a additional "user_canceled" to tell the client that the failure is expected and there is no need to show a error message.
"""
however it appears that the server is sending it as a "failures". Is that intentional? Shouldn't it better be "failure_string" or "failure_reason" ? I can adapt the client easily, but I want to know if its accidental or or purpose.
Related branches
Changed in software-center (Ubuntu): | |
status: | New → Confirmed |
milestone: | none → natty-alpha-1 |
importance: | Undecided → Medium |
Changed in software-center-agent: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Sorry Michael - that was intentional and I forgot to update the spec. The reason is that there can be multiple failures. You are probably only interested in the first one, but I wanted to be sure the API exported a property that included all failures.
As an example (off the top of my head), if the launchpad subscription creation fails, and then the payment cancel request fails, the failures attribute will contain both (in order).