Bug 1739855 - normalizeModelName() returns invalid value for HP LaserJet CP 1025nw
Summary: normalizeModelName() returns invalid value for HP LaserJet CP 1025nw
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Dohnal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-11 09:20 UTC by Daniel Mach
Modified: 2019-09-18 00:03 UTC (History)
4 users (show)

Fixed In Version: hplip-3.19.6-9.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-18 00:03:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Daniel Mach 2019-08-11 09:20:55 UTC
Description of problem:
Unable to setup printer via hp-setup

Version-Release number of selected component (if applicable):
hplip-3.19.6-4.fc31.x86_64

How reproducible:
Always

Steps to Reproduce:
1. hp-setup -i

Actual results:
Printer is not detected

Expected results:
Printer is detected and can be installed.

Additional info:
normalizeModelName() returns:
hp_laserjet_cp_1025nw
while following section is in /usr/share/hplip/data/models/models.dat:
hp_laserjet_cp1025nw

As a workaround, I added following line to normalizeModelName()
model = model.replace("CP_", "CP")

Comment 1 Zdenek Dohnal 2019-08-12 08:23:44 UTC
Hi Dan,

thank you reporting the bug and investigating, it helps a lot!

Would you mind providing the following info:

1) please start to capture packets on network interface where printer and PC are:
$ sudo tcpdump -s0 -w traffic.pcap -i <interface>

2) please run:
$ sudo lpinfo -l -v

3) end packet capture and attach it to the ticket

4) please run:
$ hp-setup -i -ldebug

The lpinfo command and packet capture should provide us an info how backends see the device and its uri (the device itself can report its uri incorrectly - this should tell us packet capture or backend can process it improperly - output of lpinfo)

Running hp-setup with -ldebug should provide us info if the issue is only in hplip package itself.

Note:
I checked the printer model on the internet - it really seems like the correct name is HP LaserJet CP1025nw, so I'm curious where that 'wild' space appears...

Comment 2 Ben Cotton 2019-08-13 16:54:01 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 3 Ben Cotton 2019-08-13 17:05:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 4 Zdenek Dohnal 2019-09-10 12:35:41 UTC
Hi Dan,

sorry for the delay, I had other urgent issues to solve and new hplip raised several similar issues.

To sum it up:

There were two records about cp1025nw - cp_1025nw and cp1025nw - in models.dat, hpcups.drv, hpijs.drv and foomatic_drv.inc. The one with '_' HP upstream deleted, which causes the issue.

I'll revert the changes and report it upstream.

Comment 5 Zdenek Dohnal 2019-09-11 14:38:42 UTC
Hi Dan,

would you mind trying these rpms from following link https://koji.fedoraproject.org/koji/taskinfo?taskID=37605798 ?

I reverted upstream changes, so the printer should be discovered and work without your patch.

Comment 6 Fedora Update System 2019-09-13 09:08:59 UTC
FEDORA-2019-2d05204b5f has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2d05204b5f

Comment 7 Daniel Mach 2019-09-13 11:37:15 UTC
I confirm that the build works fine.
I've tried all combinations of:
 * USB / NET
 * hp-setup --gui / hp-setup -i

Comment 8 Fedora Update System 2019-09-14 01:40:17 UTC
hplip-3.19.6-9.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2d05204b5f

Comment 9 Fedora Update System 2019-09-18 00:03:19 UTC
hplip-3.19.6-9.fc31 has been pushed to the Fedora 31 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.