← Back to team overview

desktop-packages team mailing list archive

[Bug 1455212] Re: IPP-over-USB support broken

 

Hello Till,

Sorry for the delay. While testing the applied patch in fresh Ubuntu
15.04 machine, the issue seems to be half fixed and can be still
reproduced. After comparing the setup with old Ubuntu system, I found
that, while debugging I added RUN{builtin}+="uaccess" entry in
56-hpmud.rules file, which I forgot to remove while testing shebang
changes and hence I could see permissions getting reflected immediately
and ipp queue getting created immediately and therefore I  thought that
issue is fixed. I am really sorry about that.  Basically there were two
problems related to system-configure-printer.

ISSUE1:  udev-add-printer script cannot be launched from udev-configure-
printer process (as python process throws an error "unknown option -")
and hence automatic print queues are not added. Provided patch is
correct and fixes this issue. Anyway I am providing the test code (in
the attached file) using which this issue could be reproduced.

ISSUE2:  Not yet fixed. Need to write proper udev rules for the programs that create daemons. I have explained the issue properly in the attached file.
systemd-udevd worker process hangs for about 3 minutes and hence 
    1) Setting permissions to device node in /dev directory is delayed by 3 minutes.
    2) udev-add-printer process remains in Zombie state for about 3 minutes as parent process does not read its exit value
    3) ippusbxd daemon (which is forked from ippusbxd main process before returning ipp port) is terminated after 3 minutes, and hence ipp uri becomes unusable as there is no daemon listening to ipp requests.

I could not spend more time to test the proposed fix (i.e using TAG+=
"systemd", ENV{SYSTEMD-WANTED}="configure-printer@.service" and then
writing proper service file etc etc.) due to lack of time. Please check
if you can reproduce the issue non IPP usb printer and also please let
me know if you need any other information regarding this issue.

Thanks,
Sanjay

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

Title:
  IPP-over-USB support broken

Status in system-config-printer package in Ubuntu:
  Fix Released
Status in system-config-printer source package in Vivid:
  Fix Committed

Bug description:
  The support for IPP-over-USB printers in udev-configure-printer is
  broken, leading to the following two problems:

  1. If the printer connected to USB supports IPP-over-USB, the
  automatic generation of a print queue can hang for three minutes

  2. If the printer connected to USB does not support IPP-over-USB udev-
  configure-printer calls ippusbxd anyway and errors out, not creating a
  print queue.

  This occurs in Vivid and Wily.

  [Impact]

  All Vivid users with a USB printer will not get automatic setup of
  print queues (printer does not do IPP-over-USB) or a print queue setup
  delayed by around 3 minutes (IPP-over-USB printers).

  [Test Case]

  Connect a USB printer for which there is not yet set up a local print
  queue. Usually within some seconds a print queue is set up
  automatically for it. No queue gets set up, for IPP-over-USB printers
  it takes around three minutes to get a print queue.

  The proposed package fixes this problem.

  [Regression Potential]

  Very low. The patch is trivial and it affects only the automatic setup
  of USB printers. Network printer setup and manual setup of USB
  printers or printing on already existing queues is not affected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/system-config-printer/+bug/1455212/+subscriptions


References