[cups.general] title missing since update

Kurt Pfeifle k1pfeifle at gmx.net
Fri Aug 10 08:24:44 PDT 2007


Thomas Güttler wrote:

> since we updated to SuSE 10.2 and cups 1.2.7-12.1, the title
> in our backend script is empty. The client sends it (the 
> original filename): D:\...\foo-filename.pdf
> 
> I checked this with tcpdump and ethereal (follow tcp stream):
> 
> .ARCHIV
> ..159 cfA157BLACKBOX
> .HBLACKBOX
> PAdministrator
> fdfA157BLACKBOX
> UdfA157BLACKBOX
> ND:\...\foo-filename.pdf
> ...16478 dfA157BLACKBOX
> %PDF-1.3
> ...
> 
> Our backend relies on the filename. 
> 
> I tried to search for a solution quite long. Any help?
> 
> Snippet of backend.pl:
> ($job,$user,$title,$copies,$options,$filename)=@ARGV;
> 
> /var/log/cups/error_log:
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] job=8836
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] user=Administrator
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] title=
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] copies=1
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] options=job-uuid=urn:uuid:dc498111-d394-3580-7389-312581227662
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] filename=/var/spool/cups/d08836-001
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] parse options (jobuuid,urn:uuid:dc498111-d394-3580-7389-312581227662)
> D [10/Aug/2007:14:44:28 +0200] [Job 8836:m] found 1 files
> 
> See: title is empty. Why?

Did your code didn't properly quote when looking for argv[3] (Disclaimer:
I don't know Perl)?

What did error_log note for argv[3] of that job?


-- 
Kurt Pfeifle
System & Network Printing Consultant ---- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH  .....................  Hedelfinger Strasse 58
A RICOH Company  ...........................  D-70327 Stuttgart/Germany




More information about the cups mailing list