ModelData.__getitem__() does not check self.released_dat existence prior to reading it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned | ||
hplip (Fedora) |
Won't Fix
|
Undecided
|
Bug Description
hplip-3.13.3
Traceback (most recent call last):
File "/bin/hp-setup", line 318, in <module>
device_uri, sane_uri, fax_uri = device.
File "/usr/share/
mq = queryModelByURI
File "/usr/share/
return queryModelByMod
File "/usr/share/
return model_dat[model]
File "/usr/share/
if self.read_
File "/usr/share/
fd = file(filename)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Local variables in innermost frame:
in_section: False
is_include: False
section: 'hp_laserjet_
cache: {}
filename: None
found: False
self: <base.models.
Changed in hplip (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Won't Fix |
Version-Release number of selected component:
hplip-3.13.3-2.fc18
Additional info: fc18.x86_ 64
cmdline: /usr/bin/python /bin/hp-setup 192.168.178.21
executable: /bin/hp-setup
kernel: 3.8.8-203.
uid: 1000
ureports_counter: 1
Truncated backtrace: py:424: read_section: TypeError: coercing to Unicode: need string or buffer, NoneType found
models.
Traceback (most recent call last): makeURI( param, jd_port) hplip/base/ device. py", line 404, in makeURI (cups_uri) hplip/base/ device. py", line 445, in queryModelByURI el(model) hplip/base/ device. py", line 434, in queryModelByModel hplip/base/ models. py", line 514, in __getitem__ section( self.released_ dat, model): hplip/base/ models. py", line 424, in read_section
File "/bin/hp-setup", line 318, in <module>
device_uri, sane_uri, fax_uri = device.
File "/usr/share/
mq = queryModelByURI
File "/usr/share/
return queryModelByMod
File "/usr/share/
return model_dat[model]
File "/usr/share/
if self.read_
File "/usr/share/
fd = file(filename)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Local variables in innermost frame: professional_ m1212nf_ mfp' ModelData instance at 0x145c638>
in_section: False
is_include: False
section: 'hp_laserjet_
cache: {}
filename: None
found: False
self: <base.models.