FoomaticRIPCommandLine fails

Aperta
#13 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
perl, shell
Ambito
tooling

Direzione di ricerca

Start by reproducing the reported FoomaticRIPCommandLine case with a title containing "Antrag%20WM.pdf", then trace how the Perl engine constructs and invokes the shell command. Done means the generated command accepts such document titles without a printf error and the print job proceeds.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am using a ppd printer from ricoh (Ricoh IM C3010 PS) including the following FoomaticRIPCommandLine:

%%%%Title: (&title;)
%%
%%\n%A%B%C%D"%%%%; /bin/cat;"
*End

If &title; is substituted e.g. with "Antrag%20WM.pdf", the command line fails with: %20W invalid directive

D [16/Sep/2025:11:48:08 +0200] [Job 64858] %%%%Title: (Antrag%20WM.pdf)
D [16/Sep/2025:11:48:08 +0200] [Job 64858] %%
D [16/Sep/2025:11:48:08 +0200] [Job 64858] %%\\n/isGenuine{\\n2 dict begin\\n/isGenuineFlag //false def\\n//systemdict /execdict known  {\\n   //systemdict /execdict get /copyright known {\\n       /copyright //systemdict /execdict get /copyright get def\\n       { copyright ( ) anchorsearch {\\n               pop /copyright exch def\\n           }{\\n               pop\\n               exit\\n           } ifelse\\n       } loop\\n
D [16/Sep/2025:11:48:08 +0200] [Job 64858] copyright ((c) Copyright 1984-) anchorsearch {\\n           pop pop\\n           copyright ( Adobe Systems Incorporated) search {\\n               pop pop pop\\n               copyright (All Rights Reserved.) search {\\n                   pop pop pop\\n                   /isGenuineFlag //true def\\n               }{\\n                   pop\\n               } ifelse\\n           }{\\n               pop\\n           } ifelse\\n       }{\\n           pop\\n       } ifelse\\n   } if\\n} if\\nisGenuineFlag\\nend\\n}bind def\\nmark {\\n    userdict /86f6369627 known { userdict /86f6369627 get /+DrvMode 1 put } if\\n} stopped cleartomark\\n/usrid(konstanz)def\\n/lppswd()def\\n/dspswd()def\\n/usrcode()def\\n/sppswd()def\\nmark\\n/usrcode where{pop}{/usrcode()def}ifelse\\n/usrid where{pop}{/usrid()def}ifelse\\n(konstanz) usrcode (20`date +%y%m%d%R | sed \'s/://\'`) {setuserinfo} stopped\\ncleartomark\\nmark {\\n<<\\n   /JobType 0\\n   /JobInfo <<\\n      /UserID usrid\\n      /Time (20`date +%y%m%d%R | sed \'s/://\'`)\\n      /HostLoginName (konstanz)\\n      /HostName (printers)\\n   >>\\n>> /RDeviceProcSet /ProcSet findresource /SetJobType get exec\\n}stopped cleartomark\\n/cbbrightness 0 def\\n/cbcontrast 0 def\\n/cbblack 0 def\\n/cbcyan 0 def\\n/cbmagenta 0 def\\n/cbyellow 0 def\\nmark{\\n<</OutputType null>>setpagedevice\\n} stopped cleartomark\\nmark{\\nuserdict /RPS_BPdict 2 dict put\\nuserdict /RPS_BPdict get begin /RPS_BP_MEDIAPOSITION null def end\\n} stopped cleartomark\\nmark{\\nuserdict /RPS_BPdict get begin\\n/RPS_BP_MEDIATYPE (Auto) def end\\n} stopped cleartomark\\nmark{\\n<<\\n/BannerPageMode false\\n/MediaPosition null\\n/MediaType null\\n>>\\n/RDeviceProcSet\\n/ProcSet findresource\\n/SetBannerPage get exec\\n} stopped cleartomark\\n\"%%%%; cat;\"
D [16/Sep/2025:11:48:08 +0200] [Job 64858] Starting process \"kid3\" (generation 1)
D [16/Sep/2025:11:48:08 +0200] [Job 64858] Starting process \"kid4\" (generation 2)
D [16/Sep/2025:11:48:08 +0200] [Job 64858] Starting process \"renderer\" (generation 2)
D [16/Sep/2025:11:48:08 +0200] [Job 64858] JCL: \033%-12345X@PJL
D [16/Sep/2025:11:48:08 +0200] [Job 64858] <job data>
D [16/Sep/2025:11:48:08 +0200] [Job 64858] /bin/sh: 1: printf: %20W: invalid directive
D [16/Sep/2025:11:48:08 +0200] [Job 64858] renderer exited with status 2

I think the title is produced by a Webbrowser-PDF-Previewer on a Linux oder Mac-computer using cups as print system. The document title in fact is "Antrag WM.pdf".

Lingua principale
Perl
Stelle
8
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OpenPrinting/foomatic-db-engine

Tutte le issue di OpenPrinting/foomatic-db-engine

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.