Bug 740831 - TypeError: iter must be a GtkTreeIter
TypeError: iter must be a GtkTreeIter
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager (Show other bugs)
x86_64 Unspecified
medium Severity medium
: rc
: ---
Assigned To: Adrian Likins
: 740748 (view as bug list)
Depends On:
Blocks: rhsm-rhel62 691780 743047
  Show dependency treegraph
Reported: 2011-09-23 09:51 EDT by Alexander Todorov
Modified: 2011-12-06 12:24 EST (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-12-06 12:24:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
File: firstboot-tb-Jhl_bF (688.69 KB, text/plain)
2011-09-23 09:51 EDT, Alexander Todorov
no flags Details

  None (edit)
Description Alexander Todorov 2011-09-23 09:51:45 EDT
abrt version: 2.0.5
executable:     /usr/bin/python
hashmarkername: firstboot
kernel:         2.6.32-201.el6.x86_64
reason:         TypeError: iter must be a GtkTreeIter
time:           Fri Sep 23 09:51:05 2011

firstboot-tb-Jhl_bF: Binary file, 705219 bytes

:The following was filed automatically by firstboot:
:firstboot 1.110.11 exception report
:Traceback (most recent call last):
:  File "/usr/share/rhsm/subscription_manager/gui/subscription_assistant.py", line 554, in subscribe_button_clicked
:    pool_id = model.get_value(tree_iter, self.subscriptions_store['pool_id'])
:TypeError: iter must be a GtkTreeIter
Comment 1 Alexander Todorov 2011-09-23 09:51:49 EDT
Created attachment 524621 [details]
File: firstboot-tb-Jhl_bF
Comment 2 Alexander Todorov 2011-09-23 09:54:35 EDT
I'm not exactly sure how I triggered this error. 

The system has been previously subscribed. Then I unsubscribed and unregistered it and deleted redhat.repo. 

After reboot into firstboot I selected to subscribe to Red Hat Employee subscription. Instead of subscribing in the list of available subscriptions appeared a second entry with the same name. Both entries were selected. When clicking on the subscribe button again I hit this error.
Comment 3 Alexander Todorov 2011-09-23 10:22:58 EDT
Here are more detailed steps to reproduce:

1) In firstboot register the system
2) Click on update certificate
3) Select product RHEL Workstation
4) Select subscription Red Hat Employee subscription
5) click Subscribe

6) there's a quick progress dialog after which the Subscribe button is not disabled. 
7) Click again on Subscribe.

You hit the bug.
Comment 4 Devan Goodwin 2011-09-23 12:07:47 EDT
Can be reproduced outside of firstboot with just normal GUI usage.

- Update Certificates
- Select a product, and then a subscription to provide it below.
- Bind takes place, but Subscription button remains enabled. (at this point nothing is selected in the Subscriptions pane)
- Hit the button, error takes place.

Subscription button is probably just not getting disabled properly.
Comment 5 Adrian Likins 2011-09-23 14:48:58 EDT
commit 15fc9d21dbf1816d3f29c609b9ff92504874d44b
Author: Adrian Likins <alikins@redhat.com>
Date:   Fri Sep 23 13:19:55 2011 -0400

    740831: set subscribe button insensitive if nothing is selected
    Subscribe was still sensitive with nothing to subscribe to
    causing errors trying to find null TreeIter in the treeview
Comment 7 Keqin Hong 2011-09-25 22:53:11 EDT
*** Bug 740748 has been marked as a duplicate of this bug. ***
Comment 8 J.C. Molet 2011-09-27 14:55:17 EDT
The commit in comment 5 works.  I've tested this in both the subscription assistant and in the "all subscriptions" tab.  After subscribing the "Showing" state is removed from the button - making it greyed out and unclickable.

moving to VERIFIED.

Tested against:

Comment 9 errata-xmlrpc 2011-12-06 12:24:40 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.