Sorting the list of previous purchases returns zero items

Bug #873104 reported by Gary Lasker on 2011-10-12
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Medium
Gary Lasker
Precise
Medium
Unassigned

Bug Description

[TEST CASE]
1. Prerequisite is to have purchased at least one item in Ubuntu Software Center.
2. Launch the current version of software-center in precise.
3. Open software-center and choose menu item "File"->"Reinstall Previous Purchases...".
4. In the list that is displayed, use the combo box in the upper right to sort the list by e.g. "By Name".
5. Verify that an empty list is displayed.
6. Close Software Center.
7. Install the new version of software-center in -proposed.
8. Repeat steps 3 and 4 for the new version of Software Center.
9. Verify that the list is now displayed and the items are sorted correctly.

[REGRESSION POTENTIAL]
This fix involves replacing some (broken) special-case code for the reinstall previous purchases feature, and so now we construct this list view in the same manner in which we construct all of the other list views. Therefore, the risk of regression is very low as all of the other list views are stable. To look for regressions, simply do repeated sortings of the reinstall previous purchases list (per step 4 above) and verify that a correctly sorted list is always returned.

---

davmor2 reports that sorting the list of previous purchases always returns zero results. To reproduce:

1. Prerequisite is to have purchased at least one item in Software Center.
2. Open software-center and choose menu item "File"->"Reinstall Previous Purchases...".
3. In the list that is displayed, use the combo box in the upper right to sort the list by e.g. "By Name".

What happens:
An empty list is displayed.

What should happen:
The full list appears, sorted by the selected criteria.

Note also that using the navigation buttons to navigate back to the previous view and back causes the list to reappear, correctly sorted by the selected criteria.

Related branches

summary: - Sorting returns zero results in previous purchases view
+ Sorting the list of previous purchases returns zero items
Robert Roth (evfool) on 2011-10-15
Changed in software-center (Ubuntu):
status: New → Confirmed
tags: added: client-server
Changed in software-center (Ubuntu):
importance: Undecided → Medium
Changed in software-center (Ubuntu):
assignee: nobody → Gary Lasker (gary-lasker)
Changed in software-center (Ubuntu):
status: Confirmed → Triaged
Changed in software-center (Ubuntu):
status: Triaged → In Progress
Changed in software-center (Ubuntu):
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.3.2

---------------
software-center (5.3.2) quantal-proposed; urgency=low

  [ Gary Lasker ]
  * lp:~gary-lasker/software-center/recommendations-string-change-lp986437-for-5.2
    - cherry pick string change LP: #986437

  [ Natalia Bidart ]
  * lp:~nataliabidart/software-center/lost-in-translation:
    - Pass the missing "self" argument to the super(ish) call to fix
      crash in the installed pane

  [ Michael Vogt ]
  * merge fixes from the 5.2 branch:
    - LP: #873104, #1003954, #967036, #920741
 -- Michael Vogt <email address hidden> Thu, 28 Jun 2012 11:12:02 +0200

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released

Hello Gary, or anyone else affected,

Accepted software-center into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/software-center/5.2.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Changed in software-center (Ubuntu Precise):
status: New → Fix Committed
importance: Undecided → Medium
description: updated
Gary Lasker (gary-lasker) wrote :

I have verified that software-center version 5.2.4 in precise-proposed fixes this bug per the test case given in the description.

Thanks!

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.2.4

---------------
software-center (5.2.4) precise-proposed; urgency=low

  [ Michael Vogt ]
  * lp:~mvo/software-center/lp970627:
    - fix intermittent crash when expunging the cache (LP: #970627)
  * lp:~mvo/software-center/lp971776:
    - fix crash when a downloaded image is invalid for whatever
      reason (network issues, proxy issues, pay-wall in between)
      (LP: #971776)
  * lp:~mvo/software-center/lp967036-2:
    - fix unicode error crash for people running with the
      LANGUAGE=zh_CN.UTF-8 or zh_TW.UTF-8 (LP: #967036)
  * lp:~mvo/software-center/cookie-jar:
    - fix paypal support in the purchases window (LP: #1018347)

  [ Gary Lasker ]
  * debian/control:
    - update vcs link to point to the 5.2 branch
  * lp:~gary-lasker/software-center/previous-purchase-sorting-lp873104:
    - return correct results when sorting the list of previous
      purchases (LP: #873104)
  * lp:~gary-lasker/software-center/recommendations-string-change-lp986437-for-5.2:
    - switch to the updated recommendations opt-in string now that the
      corresponding language pack updates are released and available
      (LP: #986437)
  * lp:~gary-lasker/software-center/fix-lp920741:
    - fix UnicodeDecodeError when a commercial app's title contains
      a unicode character (LP: #920741)

  [ Natalia Bidart ]
  * lp:~nataliabidart/software-center/cant-stop-the-music:
    - Stop the video if user navigates away from an app details page
      (LP: #1003954).
 -- Michael Vogt <email address hidden> Thu, 28 Jun 2012 10:35:55 +0200

Changed in software-center (Ubuntu Precise):
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

Related blueprints