Ticket #652 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

lpq output broke again

Reported by: jdreed Owned by: geofft
Priority: blocker Milestone: Summer 2010 (Lucid Deploy)
Component: -- Keywords:
Cc: Fixed in version:
Upstream bug:  CUPS:3619

Description

Once again, CUPS is determined to ensure that lpq remains useless:

jdreed@infinite-loop:~$ lpq -Pnysa
nysa is ready and printing
no entries
jdreed@infinite-loop:~$ mit-lpq -Pnysa
nysa is ready and printing

allisonq: active                            [job 430190 (Jul 15 12:25) localhost]
        (stdin)                                 1008269312 bytes

rcox: 1st                               [job 430196 (Jul 15 12:34) localhost]
        (stdin)                                 1496064 bytes

s11093: 2nd                               [job 430218 (Jul 15 12:52) localhost]
        Untitled1                               433152 bytes

s11093: 3rd                               [job 430219 (Jul 15 12:53) localhost]
        Untitled1                               414720 bytes

barryw: 4th                               [job 430246 (Jul 15 13:17) localhost]
        Hussman Funds - Weekly Market Comment:  487424 bytes

barryw: 5th                               [job 430248 (Jul 15 13:18) localhost]
        HIM2010Q2NP.pdf                         1290240 bytes

ragheb: 6th                               [job 430252 (Jul 15 13:24) localhost]
        SAPweb Self Service: Time: Time Sheet H 107520 bytes

huayud: 7th                               [job 430299 (Jul 15 14:28) localhost]
        (stdin)                                 385024 bytes

huayud: 8th                               [job 430300 (Jul 15 14:28) localhost]
        (stdin)                                 418816 bytes

huayud: 9th                               [job 430301 (Jul 15 14:28) localhost]
        (stdin)                                 418816 bytes

huynhle: 10th                              [job 430317 (Jul 15 15:04) localhost]
        Huynh-Le checkrec                       95232 bytes
jdreed@infinite-loop:~$ lpstat -h get-print nysa
nysa-430196             rcox           1496064   Thu 15 Jul 2010 12:34:24 PM EDT
nysa-430218             s11093          433152   Thu 15 Jul 2010 12:52:29 PM EDT
nysa-430219             s11093          414720   Thu 15 Jul 2010 12:53:54 PM EDT
nysa-430246             barryw          487424   Thu 15 Jul 2010 01:17:53 PM EDT
nysa-430248             barryw         1290240   Thu 15 Jul 2010 01:18:28 PM EDT
nysa-430252             ragheb          107520   Thu 15 Jul 2010 01:24:13 PM EDT
nysa-430299             huayud          385024   Thu 15 Jul 2010 02:28:27 PM EDT
nysa-430300             huayud          418816   Thu 15 Jul 2010 02:28:35 PM EDT
nysa-430301             huayud          418816   Thu 15 Jul 2010 02:28:43 PM EDT
nysa-430317             huynhle          95232   Thu 15 Jul 2010 03:04:08 PM EDT
jdreed@infinite-loop:~$ cups-lpq -Pnysa
nysa is ready and printing
no entries
jdreed@infinite-loop:~$ 

Change History

comment:1 Changed 14 years ago by jdreed

  • Status changed from new to accepted
  • Owner set to jdreed

This is CUPS-1.3 specific, and thus only affects Jaunty and Hardy (and Lenny). Karmic and above works just fine.

So, I think we'll chalk this up to "CUPS developers hate their userbase", and move on. I'll document it.

comment:2 Changed 14 years ago by jdreed

Also, we should report this upstream (specifically, that 1.3 lpq against a 1.4 server doesn't work).

comment:3 Changed 14 years ago by jdreed

  • Upstream bug set to CUPS:3619

comment:4 Changed 14 years ago by jdreed

This is actively screwing people, and I don't think we can wait until Lucid to fix it.

In the new printing-config world, is it easy to make the lpq wrapper actually run lpstat?

comment:5 Changed 14 years ago by jdreed

  • Owner changed from jdreed to geofft
  • Status changed from accepted to assigned

comment:6 Changed 14 years ago by andersk

We could try to get an SRU with the upstream patch, which according to the bug is  http://cups.org/strfiles/3117/str3117.patch.

comment:7 Changed 14 years ago by geofft

That patch can't possibly be right, since it's just about ipp://localhost, but then what do I know about the horrors of CUPS.

I'm going to try fixing it locally in printing-config since that'll get us a fix faster, but we should test and see if that patch does anything.

comment:8 Changed 14 years ago by geofft

Tested the patch and it seems not to work. If someone wants to check my work, take a look at zulu:/home/builder/geofft/cups*

comment:9 Changed 14 years ago by geofft

Also built stock 1.3.11 per the recommendation in the upstream ticket, and that didn't help. (I have reported this to upstream)

comment:10 Changed 14 years ago by geofft

  • Status changed from assigned to proposed

Committed a workaround in r24813/r24814 and uploaded. I'll open a new ticket about following up with upstream.

comment:11 Changed 14 years ago by jdreed

  • Status changed from proposed to closed
  • Resolution set to fixed

Looks like this got moved to production.

Note: See TracTickets for help on using tickets.