Cups StartJob() error?

Anonymous anonymous at easysw.com
Sat Feb 5 20:10:23 PST 2005


cups-1.1.22-0.rc1.8
samba-3.0.8-0.pre1.3

I am printing from Windows XP over Samba through a CUPS print server. I am using the default Windows PostScript drivers (ps5ui.dll, pscript*) and a vendor PPD. When I print, the top of my postscript file from Windows gets garbled by the time it enters the CUPS spool. This is the top of said file:

%!PS-Adobe-3.0
%cupsJobTicket: job-hold-until=no-hold
%cupsJobTicket: DLSecurityPrint=Off
%cupsJobTicket: job-sheets=none%cupsJobTicket: DLSecurityUserID=None
,none
%cupsJobTicket: DLSecurityPasswd=None
%cupsJobTicket: DLSecurityJobName=None
%!PS-Adobe-3.0^M
%%Title: Test Page^M
%%Creator: PScript5.dll Version 5.2^M
%%CreationDate: 2/5/2005 21:20:3^M
...

Note the ",none" line, which should have been appended to job-sheets. The correct format would be:

%!PS-Adobe-3.0
%cupsJobTicket: job-hold-until=no-hold
%cupsJobTicket: DLSecurityPrint=Off
%cupsJobTicket: job-sheets=none,none
%cupsJobTicket: DLSecurityUserID=None
%cupsJobTicket: DLSecurityPasswd=None
%cupsJobTicket: DLSecurityJobName=None
%!PS-Adobe-3.0^M
%%Title: Test Page^M
%%Creator: PScript5.dll Version 5.2^M
%%CreationDate: 2/5/2005 21:20:3^M
...

And indeed, if I disable the printer queue, print a test page, edit the spooled file to the above, and then enable the printer queue, the test page prints beautifully.

With CUPS error logging set to debug, error_log reports this:

I [05/Feb/2005:21:53:05 -0600] Adding start banner page \ "none%cupsJobTicket:" to job 938.
I [05/Feb/2005:21:53:05 -0600] Job 938 queued on 'psnjosh' by \ 'jccurtis'.
D [05/Feb/2005:21:53:05 -0600] Job 938 hold_until = 0
D [05/Feb/2005:21:53:05 -0600] StartJob(938, 0xf74ca478)
D [05/Feb/2005:21:53:05 -0600] StartJob() id = 938, file = 0/1
D [05/Feb/2005:21:53:05 -0600] job-sheets=none%cupsJobTicket:
D [05/Feb/2005:21:53:05 -0600] banner_page = 1
D [05/Feb/2005:21:53:05 -0600] StartJob: argv = \ "psnjosh","938","jccurtis","smbprn.00000014 Test \ Page","1","DLSecurityPrint=Off \ DLSecurityUserID=None","/var/spool/cups/d00938-001"

I have added "\" characters to indicate line wraps. I have no idea what is causing this file to garble. The start banner page should pass the value "none", not "none%cupsJobTicket:". Also, I am unsure why StartJob is being passed argv = "DLSecurityPrint=Off DLSecurityUserID=None". Searching for DLSecurity on google returns nothing, I am clueless as to its purpose.

If anyone could shed some light on this situation, I would greatly appreciate it.

--
Joshua C. Curtis
CSL/CRHC Staff




More information about the cups mailing list