Bug 1026876

Summary: [abrt] system-config-printer-libs-1.4.2-1.fc19: jobviewer.py:965:update_job:AttributeError: 'Array' object has no attribute 'get'
Product: [Fedora] Fedora Reporter: madbix
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jpopelka, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/12e1df8c0e1a3f1de91197bce967b570e63a18eb
Whiteboard: abrt_hash:b35bc253be822bab74a28b7994b66296b3fe00ba
Fixed In Version: system-config-printer-1.4.3-2.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-06 07:39:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description madbix 2013-11-05 15:08:50 UTC
Description of problem:
Added a windows shared printer with Generis Postscript driver and launched a print test page. The error occurs and the document is not printed.

Version-Release number of selected component:
system-config-printer-libs-1.4.2-1.fc19

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python /usr/share/system-config-printer/scp-dbus-service.py
executable:     /usr/share/system-config-printer/scp-dbus-service.py
kernel:         3.11.6-201.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
jobviewer.py:965:update_job:AttributeError: 'Array' object has no attribute 'get'

Traceback (most recent call last):
  File "/usr/share/system-config-printer/jobviewer.py", line 1891, in job_event
    self.update_job (jobid, jobdata)
  File "/usr/share/system-config-printer/jobviewer.py", line 965, in update_job
    auth_info[ind] = items[0].attributes.get ('user', '')
AttributeError: 'Array' object has no attribute 'get'

Local variables in innermost frame:
share: 'prismlpa'
rest: u'//UNIV-LYON1/pcounter/prismlpa'
result: <enum GNOME_KEYRING_RESULT_OK of type PyGnomeKeyringResult>
jstate: 4
ind: 0
group: 'UNIV-LYON1'
val: 'pcounter'
jattrs: ['job-state', 'job-hold-until']
self: <JobViewer object at 0x2ceba50 (jobviewer+JobViewer at 0x28f4d80)>
connection: <cups.Connection object for /var/run/cups/cups.sock at 0x2ff72a0>
device_uri: u'smb://UNIV-LYON1/pcounter/prismlpa'
job_requires_auth: True
scheme: u'smb'
type: <enum GNOME_KEYRING_ITEM_NETWORK_PASSWORD of type PyGnomeKeyringItemType>
try_keyring: True
job: 79
user: ''
key: 'server'
auth_info_required: [u'username', u'password']
password: ''
data: {'job-name': u'Test Page', 'job-printer-uri': u'ipp://localhost.localdomain/printers/prismlpa', 'device-uri': u'smb://UNIV-LYON1/pcounter/prismlpa', 'job-state': 4, 'attributes-charset': u'utf-8', 'auth-info-required': [u'username', u'password'], 'job-k-octets': 1, 'attributes-natural-language': u'en-us', 'job-printer-name': 'prismlpa', 'time-at-creation': 1383663567, 'job-hold-until': u'auth-info-required', 'job-originating-user-name': u'maxime'}
c: <authconn.Connection instance at 0x2ffa440>
auth_info: ['', '']
pattrs: ['auth-info-required', 'device-uri']
items: [<GnomeKeyringFound at 0x3145e00>]
uri: <smburi.SMBURI instance at 0x2ffaea8>
server: 'pcounter'
s: 4
r: ['job-preserved']
keyring_attrs: {'domain': 'UNIV-LYON1', 'protocol': 'smb', 'server': 'pcounter'}
attrs: <GArray at 0x3126a90>

Comment 1 madbix 2013-11-05 15:09:00 UTC
Created attachment 819819 [details]
File: backtrace

Comment 2 madbix 2013-11-05 15:09:04 UTC
Created attachment 819820 [details]
File: environ

Comment 3 Jiri Popelka 2013-11-05 16:31:24 UTC
This has probably already been fixed upstream
https://git.fedorahosted.org/cgit/system-config-printer.git/commit/?id=35610655dbb56c60b7984ad0c296d0a114ba9017

Comment 4 Fedora Update System 2013-11-05 16:34:24 UTC
system-config-printer-1.4.3-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-19726/system-config-printer-1.4.3-2.fc19

Comment 5 Fedora Update System 2013-11-06 07:39:36 UTC
system-config-printer-1.4.3-2.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.