"Reinstall Previous Purchases" shows empty screen and traceback

Bug #834984 reported by Matthew Paul Thomas on 2011-08-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
High
Kiwinote

Bug Description

software-center-gtk3 trunk r2217, Ubuntu Ocelot

1. Launch USC.
2. Choose "File" > "Reinstall Previous Purchases".

What happens:
* The main pane goes blank, except for a sort menu.
* A traceback:
------------
2011-08-26 20:11:56,423 - softwarecenter.db.update - ERROR - error processing: 'PistonResponseObject' object has no attribute 'department'
Traceback (most recent call last):
  File "/home/mpt/hacking/software-center/softwarecenter/db/update.py", line 488, in add_from_purchased_but_needs_reinstall_data
    index_app_info_from_parser(parser, db_purchased, cache)
  File "/home/mpt/hacking/software-center/softwarecenter/db/update.py", line 686, in index_app_info_from_parser
    for cat in parser.get_desktop_categories():
  File "/home/mpt/hacking/software-center/softwarecenter/db/update.py", line 179, in get_desktop_categories
    return ['SC_CATEGORY'] + self.sca_entry.department
AttributeError: 'PistonResponseObject' object has no attribute 'department'
2011-08-26 20:11:56,424 - softwarecenter.db.update - ERROR - error processing: 'PistonResponseObject' object has no attribute 'department'
Traceback (most recent call last):
  File "/home/mpt/hacking/software-center/softwarecenter/db/update.py", line 488, in add_from_purchased_but_needs_reinstall_data
    index_app_info_from_parser(parser, db_purchased, cache)
  File "/home/mpt/hacking/software-center/softwarecenter/db/update.py", line 686, in index_app_info_from_parser
    for cat in parser.get_desktop_categories():
  File "/home/mpt/hacking/software-center/softwarecenter/db/update.py", line 179, in get_desktop_categories
    return ['SC_CATEGORY'] + self.sca_entry.department
AttributeError: 'PistonResponseObject' object has no attribute 'department'
------------

What should happen: An Ubuntu SSO sign-in dialog appears.

description: updated
Changed in software-center (Ubuntu):
importance: Undecided → High
Kiwinote (kiwinote) wrote :

Fixed in linked branch.

Changed in software-center (Ubuntu):
assignee: nobody → Kiwinote (kiwinote)
status: New → Fix Committed
Gary Lasker (gary-lasker) wrote :

Thanks for your fix, kiwinote! Your branch is merged to trunk now and this fix will be available soon in the next development release of Software Center.

Launchpad Janitor (janitor) wrote :

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

---------------
software-center (4.1.21) oneiric; urgency=low

  [ Kiwinote ]
  * AUTHORS:
    - add credits for the new icon (LP: #834882)
  * a stash of unicode fixes to make s-c-gtk3 usable around the world
    (LP: #831865, LP: #834409, LP: #834312)
  * softwarecenter/db/update.py:
    - fix reinstall previous purchases (LP: #834984)
  * softwarecenter/ui/gtk3/panes/availablepane.py:
    - set title for 'previous purchases' list view (LP: #833960)
  * softwarecenter/ui/gtk3/panes/softwarepane.py:
    - fix None.copy() such that switching panes works again (LP: #834196)
  * softwarecenter/ui/gtk3/widgets/buttons.py:
    - escape application name in tiles (LP: #835876)

  [ Jacob Johan Edwards ]
  * softwarecenter/ui/gtk3/panes/softwarepane.py:
    - fix the spinner display when loading slow views (LP: #830682)

  [ Gabor Kelemen ]
  * po/POTFILES.in,
    po/POTFILES.skip:
    - update per latest configuration, add new gtk3 files

  [ Matthew McGowan ]
  * softwarecenter/ui/gtk3/widgets/buttons.py :
    - resize fix for Top Rated and What's New tiles (LP: #833697)
  * softwarecenter/ui/gtk3/views/catview_gtk.py,
    softwarecenter/ui/gtk3/widgets/containers.py:
    - disable the rendering of the checkboard pattern in the
      grid views (at request of mpt)
   * lp:~mmcg069/software-center/description-tweaks:
     - fix badly rendered package descriptions, other tweaks
       (LP: #833954)
   * lp:~mmcg069/software-center/globalpane-themeability:
     - various theming fixes (LP: #828092, LP: #830681,
       LP: #830738 and LP: #838382)

  [ Gary Lasker ]
  * software-center,
    software-center-gtk3,
    softwarecenter/db/update.py:
    - enable CJK support in Xapian (LP: #745243)
  * po/software-center.pot:
    - refresh .pot file
  * softwarecenter/ui/gtk/widgets/thumbnail.py:
    - fix missing icon in theme to let non-gtk3 version
      launch again, also fixes all gtk unit tests
  * test/test_database.py:
    - update unit test

  [ Didier Roche ]
  * softwarecenter/ui/gtk3/panes/installedpane.py,
    softwarecenter/ui/gtk3/views/appview.py,
    softwarecenter/ui/gtk3/widgets/menubutton.py,
    softwarecenter/ui/gtk3/widgets/oneconfviews.py,
    softwarecenter/db/appfilter.py,
    softwarecenter/ui/gtk3/app.py,
    data/ui/gtk3/SoftwareCenter.ui:
    - brings back OneConf to software center gtk3 with a fresh new design
      (LP: #838623)
  * debian/control:
    - depends on latest oneconf
 -- Gary Lasker <email address hidden> Thu, 01 Sep 2011 11:55:14 -0400

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