FS#64801 - [hplip] Wrong models.dat entry for printer HP Color LaserJet Pro MFP M181fw

Attached to Project: Arch Linux
Opened by Marcel Miebach (retr0virus) - Tuesday, 10 December 2019, 22:32 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 11 December 2019, 06:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
In my hplip 1:3.19.11-4 x86_64 package my multi-function network printer HP Color LaserJet Pro MFP M181fw stopped scanning and printing after one of the previous updates.
I tried a lot of things (first in cups, later with removing and trying to reinstall the printer). I also tried the hp-setup and hp-plugin tools. Nothing helped. I got the error message that there was no printer found in my network.
Scanning and printing from my smartphone still worked.

If run with hp-setup -g I get the following debug message:
hp-setup[5160]: debug: Found device: {'num_devices': 1, 'num_ports': 1, 'product_id': 'T6B71A', 'status_code': 0, 'device2': '0', 'device3': '0', 'note': '', 'device1': 'MFG:HP;CMD:PJL,PML,PCLXL,PWG_RASTER,URP,PCL,PDF,POSTSCRIPT;MDL:HP ColorLaserJet MFP M178-M181;CLS:PRINTER;DES:HP Color LaserJet MFP M181fw; [.... and some MAC addresses and ip addresses following here.... ]
hp-setup[5160]: debug: Cache miss: hp_colorlaserjet_mfp_m178-m181
hp-setup[5160]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[5160]: debug: Searching for section [hp_colorlaserjet_mfp_m178-m181] in file /usr/share/hplip/data/models/models.dat
error: No devices found on bus: net
error: HPLIP cannot detect printers in your network. This may be due to existing firewall settings blocking the required ports.
When you are in a trusted network environment, you may open the ports for network services like mdns and slp in the firewall. For detailed steps follow the link.
http://hplipopensource.com/node/374

So the device is found but is not recognised within the models.dat file.
I checked the file and found that there is a TYPO within the model name. We see in the debug log that the application searches for hp_colorlaserjet_mfp_m178-m181 but actually it is called hp_color_laserjet_mfp_m178-m181 (notice the added underscore after hp_color).

So I fixed the underscore in the file so that it matches the expected string and it directly started to work with a new hp-setup call.

I do not know if this is an Arch bug or if it is an upstream issue but the fix is trivial.

Additional info:
* package version: extra/hplip 1:3.19.11-4

Steps to reproduce:
Try to use the mentioned printer. ;-)
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 11 December 2019, 06:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.19.11-5
Comment by Andreas Radke (AndyRTR) - Wednesday, 11 December 2019, 06:40 GMT
This look similar to  FS#64420 . Going to build now with a similar fix.

Loading...