loading firmware into hplj1000 twice

Bug #1476844 reported by Pavel Shvagirev
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
foo2zjs (Ubuntu)
New
Undecided
Unassigned

Bug Description

/lib/udev/hplj1000 doesn't handle another $DEVNAME case when udev calls it twice.

Udev calls the script twice for some reason on the system described below.

At first, udev calls hplj1000 with "/dev/bus/usb/004/059" as a $DEVNAME which is not desired/not supported.
Then it calls the script once again with "/dev/usb/lp0" as a $DEVNAME which is desired and must be used to load a firmware to.

The problem is that the script handles only "/dev/usb/usb*" case but not the "/dev/bus/usb/*".
This leads to firmware being loaded twice which causes HP LaserJet 1000 to hang and stop processing tasks.

Attached patch adds another case to the /lib/udev/hplj1000 script that silently exits if the script is called with undesired value.

# lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
# apt-cache policy printer-driver-foo2zjs-common
printer-driver-foo2zjs-common:
  Installed: 20140209dfsg0-1ubuntu1
  Candidate: 20140209dfsg0-1ubuntu1
  Version table:
 *** 20140209dfsg0-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
# apt-cache policy udev
udev:
  Installed: 204-5ubuntu20.12
  Candidate: 204-5ubuntu20.12
  Version table:
 *** 204-5ubuntu20.12 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     204-5ubuntu20 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
#

Revision history for this message
Pavel Shvagirev (pavel-shvagirev) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "hplj1000.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Thanks for your bugs report.
It would be nice if you could report your patch in the upstream foo2zjs forum for inclusion: http://foo2zjs.rkkda.com/forum/

tags: added: needs-upstream-report
Revision history for this message
Pavel Shvagirev (pavel-shvagirev) wrote :

Reported in the upstream forum: http://foo2zjs.rkkda.com/forum/read.php?8,4010

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.