hpaio.c contains localOnly condition, that breaks saned

Bug #1435022 reported by Dambaev Alexander
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
HPLIP
New
Undecided
Unassigned

Bug Description

Looks like DevDiscovery(int localOnly) thinks that saned does need to know about network devices, defined by cups.

This breaks saned, used by remote sane client

Tags: hpaio
Revision history for this message
Dambaev Alexander (theice) wrote :
Revision history for this message
Dambaev Alexander (theice) wrote :

this condition was introduced by Tim Waugh (https://bugzilla.redhat.com/show_bug.cgi?id=743593#c18) in 2011-10-20
By that patch, he was tried to fix slow lpstat execution, which triggers cupsd, colord, sane and then hpaio.

Revision history for this message
brian_p (claremont102) wrote :

We have a bug report in Debian on the same issue:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807427

It appears that a user would find it impossible to make any HP scanner on a SANE server visible to a client running SANE. This seems to be a very unfortunate decision to implement.

The localOnly condition was removed in 2007 with the remark:

> This looks like a case where we don't necessarily follow
> the Sane specification. Since the old hpaio code ignored localOnly
> and seemed to work ok, I see no reason for not changing it back.

What is strange is that is was reintroduced in 2013. There is absolutely no record giving details as to why; that it happened and for what reason is not even recorded. This is two years after the Redhat bug mentioned above, which, as far as I can make out, introduced a patch to Redhat only.

So, what is the benefit of not making scanning devices visible on the network through SANE?

Regards,

Brian.

Revision history for this message
brian_p (claremont102) wrote :

Another Debian report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838212

Regards,

Brian.

Revision history for this message
Harald Heigl (harald-heigl) wrote :

Hi,

Are there any news to this issue? I would like to have solved this too.
Perhaps a better solution would be to make this configurable as said in the linked report with a environment variable of LIBSANE_HPAIO_LOCALONLY.
If it is not set at all the current behaviour would work otherwise the setting in the environemnt variable.

Regards,
Harald

Revision history for this message
PEREZ Christophe (n-chris-m) wrote :

Hi,

Same problem for me, on gentoo.
I have to apply a custom patch, but it would be great to have a option to select for this.
https://bugs.gentoo.org/798714

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.