hp-setup incorrectly modifies device URI with hostname
Bug #1278793 reported by
Arnaud Fontaine
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
When using hp-setup (through even GUI or text UI), if the specified or selected hostname contains 'ip', then it will be replaced by 'hostname' because the replace() call to replace 'ip=' by 'hostname=' is wrong in base/device.py. Thus, the URI must be fixed in CUPS configuration afterwards.
For example 'testiphost', a replace of 'ip' will be performed in the URI and the hostname will end up being 'testhostnamehost' and the URI will end up being 'hp:/net/
I have attached a patch fixing this issue. I have also attached another patch to fix some typos.
To post a comment you must log in.
Another patch to fix typos.