Hello Ferry,
Thank you for submitting this bug and reporting a problem with cups.  You made 
this bug report some time ago and Ubuntu and cups have been updated since then. 

Could you confirm that this is no longer a problem and that we can close the 
ticket? 
If it is still a problem, are you still interested in finding a solution to 
this bug? 
If you are, could you let us know and, in the current version, could you run 
the following (only once):
apport-collect 1257254
and upload the updated logs and and any other logs that are relevant for this 
particular issue. 

Thank you again for helping make Ubuntu and cups better. 
G

** Changed in: cups (Ubuntu)
       Status: New => Incomplete

-- 
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:
  Incomplete

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     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to