← Back to team overview

desktop-packages team mailing list archive

[Bug 1476844] [NEW] loading firmware into hplj1000 twice

 

Public bug reported:

/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
#

** Affects: foo2zjs (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: foo2zjs hplj1000 udev

** Patch added: "hplj1000.patch"
   https://bugs.launchpad.net/bugs/1476844/+attachment/4432206/+files/hplj1000.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to foo2zjs in Ubuntu.
https://bugs.launchpad.net/bugs/1476844

Title:
  loading firmware into hplj1000 twice

Status in foo2zjs package in Ubuntu:
  New

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
  #

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/foo2zjs/+bug/1476844/+subscriptions


Follow ups