Bug 1026876 - [abrt] system-config-printer-libs-1.4.2-1.fc19: jobviewer.py:965:update_job:AttributeError: 'Array' object has no attribute 'get'
Summary: [abrt] system-config-printer-libs-1.4.2-1.fc19: jobviewer.py:965:update_job:A...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:b35bc253be822bab74a28b7994b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-05 15:08 UTC by madbix
Modified: 2013-11-06 07:39 UTC (History)
2 users (show)

Fixed In Version: system-config-printer-1.4.3-2.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-06 07:39:36 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (1.88 KB, text/plain)
2013-11-05 15:09 UTC, madbix
no flags Details
File: environ (807 bytes, text/plain)
2013-11-05 15:09 UTC, madbix
no flags Details

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.


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