[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#719946: cups: CUPS 1.6 client sends wrong mimetype to 1.5 server, can't print



tags 719946 moreinfo
thanks



Hello Tom,

Your comprehensive report is appreciated.


On Fri 16 Aug 2013 at 23:28:44 -0430, Tom Maneiro wrote:

> The problem with my Jessie/CUPS 1.6 clients is that they can't print to the
> Wheezy/CUPS 1.5 printserver. After enabling debug logging on everything
> (including the printserver, a Wheezy client which can print, and a Jessie
> client that CAN'T print), I've noticed that while the Wheezy (and Windows)
> clients send the print job data as "application/octet-stream" (so the server
> does nothing but to directly pipe the data into the printer), while the exact

Are you sure the jobs are *sent* as application/octet-stream? The server
usually auto-types the file received?

> same data (LAVAFLOW encapsulted into PJL) is sent by the Jessie clients as
> "application/vnd.cups-pdf" (the server assumes that it's receiving a PDF... and

The likely case here is that the job is *sent* as application/vnd.cups-pdf.

> Relevant log entries from the Wheezy print server:
>
> - This Wheezy client can print:
> 
> D [16/Aug/2013:22:30:06 -04-30] [Job 169] Auto-typing file...
> D [16/Aug/2013:22:30:06 -04-30] [Job 169] Request file type is application/octet-stream.
> I [16/Aug/2013:22:30:06 -04-30] [Job 169] File of type application/octet-stream queued by "tomman".

The client sent the file without specifying its mime type. The server
sorted out the type.

> - On the other side, this Jessie client can't print at all on the same server

> I [16/Aug/2013:22:38:33 -04-30] [Job 171] File of type application/vnd.cups-pdf queued by "tomman".

No first two lines as with the Wheezy client. The Jessie client has
informed the server about the mime type. This could be done with

   lp -d  <print_QUEUE> -o document-format=application/vnd.cups-pdf <file>

Please examine the client for an lpoptions file in /etc/cups or ~/.cups
which contains "document-format". /etc/inetd.conf may be worth a look at
too.

Regards,

Brian.


Reply to: