#940856 Underquoted commands in generated hpijs PPD

Package:
printer-driver-hpijs
Source:
hplip
Description:
HP Linux Printing and Imaging - printer driver (hpijs)
Submitter:
Jan Nordholz
Date:
2019-09-20 21:45:05 UTC
Severity:
normal
#940856#5
Date:
2019-09-20 21:31:38 UTC
From:
To:
Hi,

I have trouble with a freshly generated PPD for a HP Envy 5000. If I select
a different paper source than "Default", a gs command like this is launched
as part of the pipeline:

	gs -sstdout=%stderr  -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE \
	-dNOINTERPOLATE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=595 \
	-dDEVICEHEIGHTPOINTS=842 -sDeviceManufacturer=\"HEWLETT-PACKARD\" \
	-sDeviceModel=\"deskjet 5600\" -r300 \
	-sIjsParams=Quality:Quality=0,Quality:ColorMode=0,Quality:MediaType=0,Quality:PenSet=2<</MediaPosition 1>>setpagedevice \
	-dIjsUseOutputFD -sOutputFile=%stdout -_

Note the unquoted sIjsParams which then cause shell errors as the << >> are
mistaken for redirection/here-doc operations:

D [19/Sep/2019:23:22:46 +0200] [Job 1144] /bin/sh: warning: here-document at line 0 delimited by end-of-file (wanted `/MediaPosition\')
D [19/Sep/2019:23:22:46 +0200] [Job 1144] /bin/sh: setpagedevice: Permission denied

Full CUPS error log and generated PPD are attached.

Thanks

Jan