hp-setup incorrectly modifies device URI with hostname

Bug #1278793 reported by Arnaud Fontaine
8
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/PRINTER?hostname=testhostnamehost'.

I have attached a patch fixing this issue. I have also attached another patch to fix some typos.

Revision history for this message
Arnaud Fontaine (arnaud-fontaine) wrote :
Revision history for this message
Arnaud Fontaine (arnaud-fontaine) wrote :

Another patch to fix typos.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.