[Expired for cups (Ubuntu) because there has been no activity for 60
days.]
** Changed in: cups (Ubuntu)
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to cups in Ubuntu.
https://bugs.launchpad.net/bugs/1257254
Title:
cupsaddsmb doesn't filter out all PJL commands from PPD
Status in cups package in Ubuntu:
Expired
Bug description:
Summury
----------
Windows clients printing to the cups server get an error page from the
printer:
ERROR: undefined
OFFENDING COMMAND: @PJL
STACK:
Description
-------------
Our "HP LaserJet 400 MFP M425" ppd has the following lines containing PJL
commands:
line #47:
*Protocols: TBCP PJL
*JCLBegin: "<1B>%-12345X@PJL JOB<0A>"
*JCLToPSInterpreter: "@PJL ENTER LANGUAGE = PostScript <0A>"
*JCLEnd: "<1B>%-12345X@PJL EOJ <0A><1B>%-12345X"
line #410
*HPEconoMode True/On: "@PJL SET ECONOMODE=ON<0A>@PJL SET
RESOLUTION=600<0A>@PJL SET BITSPERPIXEL=2<0A>"
*HPEconoMode False/Off: "@PJL SET ECONOMODE=OFF<0A>@PJL SET
RESOLUTION=600<0A>@PJL SET BITSPERPIXEL=2<0A>"
The 4 lines from #47 are correctly commented out by cupsaddsmb when
registering the drivers for windows clients:
*% Commented out for CUPS Windows Driver...
*%Protocols: TBCP PJL
*% Commented out for CUPS Windows Driver...
*%JCLBegin: "<1B>%-12345X@PJL JOB<0A>"
*% Commented out for CUPS Windows Driver...
*%JCLToPSInterpreter: "@PJL ENTER LANGUAGE = PostScript <0A>"
*% Commented out for CUPS Windows Driver...
*%JCLEnd: "<1B>%-12345X@PJL EOJ <0A><1B>%-12345X"
However, the 2 lines from #410 are not filtered out
Cause
------
In the source file adminutil.c the function cupsAdminExport Samba()
specifically searches for certain JCL commands:
else if (!strncmp(line, "*JCLBegin:", 10) ||
!strncmp(line, "*JCLToPSInterpreter:", 20) ||
!strncmp(line, "*JCLEnd:", 8) ||
!strncmp(line, "*Protocols:", 11))
however, all PJL commands should be either replaced or removed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/1257254/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp