Bug 1777457 - hplip-3.19.10-2 breaks support for devices with '_series' in device id
Summary: hplip-3.19.10-2 breaks support for devices with '_series' in device id
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:
: 1777519 1777587 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-27 15:40 UTC by Basil Eric Rabi
Modified: 2019-11-30 00:56 UTC (History)
6 users (show)

Fixed In Version: hplip-3.19.11-1.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-30 00:56:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
log (254.53 KB, text/plain)
2019-11-27 16:47 UTC, Basil Eric Rabi
no flags Details
log from raspbian (197.99 KB, text/plain)
2019-11-27 23:25 UTC, Basil Eric Rabi
no flags Details

Description Basil Eric Rabi 2019-11-27 15:40:59 UTC
Description of problem:
Scanning works when accessing the device using the embedded server of DeskJet 3775. When scanning in Document Scanner (simple-scan?) and selecting the scanner connected either USB or network, scanning does not work.

In hplip-gui, it says:
```
Status: Scan job failed
Code: 2002
Description: Please correct the problem and try again
```

In Document Scanner: `Failed to scan. Unable to connect to scanner.`


Version-Release number of selected component (if applicable):
3.19.10-2

How reproducible:
100%

Steps to Reproduce:
1. Open Document Scanner (simple-scan?)
2. Select the scanner in preferences
3. Scan

Actual results:
Scanning fails.

Expected results:
Document is scanned.

Additional info:
Printing works without issues.

Comment 1 Zdenek Dohnal 2019-11-27 16:28:32 UTC
Hi Basil,

thank you for reporting the issue!

I did not find your device on the list of supported devices http://www.sane-project.org/sane-mfgs.html or https://developers.hp.com/hp-linux-imaging-and-printing/supported_devices/index .

Did the scanner work in the past in simple-scan/xsane/scanimage?

Printing is probably working due IPP everywhere, but scanning does not have anything similar and relies on driver support.

Would you mind trying and attaching the file from command:

$ SANE_DEBUG_DLL=255 SANE_DEBUG_HPAIO=255 SANE_DEBUG_SANEI_USB=255 scanimage -L &> find_scanner.log

Comment 2 Basil Eric Rabi 2019-11-27 16:47:28 UTC
Created attachment 1640195 [details]
log

Yeah, maybe because it's unsupported. :(
This is the first time I'm using the device.

Comment 3 Basil Eric Rabi 2019-11-27 23:24:06 UTC
I tested hplip in raspbian buster (hplip 3.18.12). Scanning works fine via xsane. There is an option "scan" in actions tab of hplip while in fedora there is none.

Comment 4 Basil Eric Rabi 2019-11-27 23:25:35 UTC
Created attachment 1640243 [details]
log from raspbian

Comment 5 Zdenek Dohnal 2019-11-28 08:34:53 UTC
Basil,

I think this is the same bug as 1777587 and 1777519... would you mind trying previous build https://koji.fedoraproject.org/koji/taskinfo?taskID=39384138 if it works?

Comment 6 Basil Eric Rabi 2019-11-28 08:55:20 UTC
Hi Zdenek,

I was able to scan via simple-scan using the downgraded version.

Comment 7 Basil Eric Rabi 2019-11-28 08:56:09 UTC
I mean, using https://koji.fedoraproject.org/koji/taskinfo?taskID=39384138.

Comment 8 Zdenek Dohnal 2019-11-28 09:41:00 UTC
Thank you for confirming it!

Would you mind sharing the output of '$ sudo lpinfo -l -v'?

I would like to see how the printer advertises itself, because I see in the log of scanimage:

device `hpaio:/usb/DeskJet_3700_series?serial=CN6CE2D07Q06H4' is a Hewlett-Packard DeskJet_3700_series all-in-one
device `hpaio:/net/DeskJet_3700_series?ip=172.16.100.173' is a Hewlett-Packard DeskJet_3700_series all-in-one

but I'm not sure if "DeskJet_3700_series" is the name how the device advertises itself or if it is somehow changed in hplip.

Comment 9 Zdenek Dohnal 2019-11-28 09:41:18 UTC
*** Bug 1777587 has been marked as a duplicate of this bug. ***

Comment 10 Zdenek Dohnal 2019-11-28 09:46:04 UTC
*** Bug 1777519 has been marked as a duplicate of this bug. ***

Comment 11 Basil Eric Rabi 2019-11-28 09:48:06 UTC
(In reply to Zdenek Dohnal from comment #8)

> Would you mind sharing the output of '$ sudo lpinfo -l -v'?
> 

Device: uri = socket
        class = network
        info = AppSocket/HP JetDirect
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = beh
        class = network
        info = Backend Error Handler
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = cups-pdf:/
        class = file
        info = CUPS-PDF
        make-and-model = Virtual PDF Printer
        device-id = MFG:Generic;MDL:CUPS-PDF Printer;DES:Generic CUPS-PDF Printer;CLS:PRINTER;CMD:POSTSCRIPT;
        location = 
Device: uri = hp
        class = direct
        info = HP Printer (HPLIP)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = ipp
        class = network
        info = Internet Printing Protocol (ipp)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = http
        class = network
        info = Internet Printing Protocol (http)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = cups-brf:/
        class = file
        info = CUPS-BRF
        make-and-model = Virtual Braille BRF Printer
        device-id = MFG:Generic;MDL:CUPS-BRF Printer;DES:Generic CUPS-BRF Printer;CLS:PRINTER;CMD:BRF;
        location = 
Device: uri = ipps
        class = network
        info = Internet Printing Protocol (ipps)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = https
        class = network
        info = Internet Printing Protocol (https)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = lpd
        class = network
        info = LPD/LPR Host or Printer
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = smb
        class = network
        info = Windows Printer via SAMBA
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = hpfax
        class = direct
        info = HP Fax (HPLIP)
        make-and-model = Unknown
        device-id = 
        location = 
Device: uri = dnssd://HP%20DeskJet%203700%20series%20%5B0C506E%5D._ipp._tcp.local/?uuid=e3d8b255-1793-db89-9518-6cb5156802fc
        class = network
        info = HP DeskJet 3700 series [0C506E]
        make-and-model = HP DeskJet 3700 series
        device-id = MFG:HP;MDL:DeskJet 3700 series;CMD:PCL,JPEG,URF,PWG;
        location = 
Device: uri = socket://172.16.100.173:9100
        class = network
        info = DeskJet 3700 series
        make-and-model = HP DeskJet 3700 series
        device-id = MFG:HP;MDL:DeskJet 3700 series;CMD:PCL3GUI,PJL,Automatic,JPEG,PCLM,AppleRaster,PWGRaster,DW-PCL,802.11,DESKJET,DYN;CLS:PRINTER;DES:J9V87B;CID:HPDeskjet_P976D;LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04#01;SN:CN6CE2D07Q06H4;S:038000C480a00001002c246000ac1400064;Z:05000001000008,12000,1700005a000000,181;
        location = 
Device: uri = ipp://HP30E1710C506E.local:631/ipp/print
        class = network
        info = HP DeskJet 3700 series (driverless)
        make-and-model = HP DeskJet 3700 series
        device-id = MFG:HP;MDL:DeskJet 3700 series;CMD:PCLM,PCL,PWGRaster,AppleRaster,JPEG,URF,PWG;
        location = 

By the way, the sticker on my printer says: HP DeskJet Ink Advantage 3775

Comment 12 Zdenek Dohnal 2019-11-28 11:47:39 UTC
Basil,

would you mind testing following build https://koji.fedoraproject.org/koji/taskinfo?taskID=39385839 ?

Thank you!

Comment 13 Zdenek Dohnal 2019-11-28 11:52:54 UTC
This one worked in my small testing program, I hope it helps.

The problem was that I did compare return value of strncasecmp with anything, so 'if' statement used return value as condition and strncasecmp returns 0 if strings matches and non-zero if not... mistake made in hurry :( ...

Comment 14 Basil Eric Rabi 2019-11-28 12:01:48 UTC
Hi Zdenek,

The new build works for me. Thank you very much.

Comment 15 Fedora Update System 2019-11-28 15:40:29 UTC
FEDORA-2019-6d5ceeb446 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6d5ceeb446

Comment 16 Fedora Update System 2019-11-29 01:30:58 UTC
hplip-3.19.11-1.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-6d5ceeb446

Comment 17 Fedora Update System 2019-11-30 00:56:39 UTC
hplip-3.19.11-1.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.