FoomaticRIPCommandLine fails

Đang mở
#13 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
perl, shell
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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".

Ngôn ngữ chính
Perl
Star
8
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenPrinting/foomatic-db-engine

Tất cả issue của OpenPrinting/foomatic-db-engine

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.