Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 228107 - [LSPP] Labels for labeled printing don't linewrap
[LSPP] Labels for labeled printing don't linewrap
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cups (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
David Lawrence
Depends On:
Blocks: RHEL5LSPPCertTracker
  Show dependency treegraph
Reported: 2007-02-09 19:01 EST by Matt Anderson
Modified: 2007-11-30 17:07 EST (History)
5 users (show)

See Also:
Fixed In Version: RHSA-2007-1020
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-31 09:48:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
cups-lspp patch with support for line wrapped labels (77.58 KB, patch)
2007-03-20 12:29 EDT, Matt Anderson
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2007:1020 normal SHIPPED_LIVE Important: cups security and bug fix update 2007-10-31 09:48:34 EDT

  None (edit)
Description Matt Anderson 2007-02-09 19:01:35 EST
Description of problem:

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 Matt Anderson 2007-02-09 19:06:59 EST
Description of problem:
When using labeled printing a long enough label will continue off the edge of
the page, resulting in lost information.

How reproducible:

Steps to Reproduce:
1. Create a really long label name in /etc/selinux/mls/setrans.conf
2. Setup labeled printing in cups
3. Print something with the long label and see that its truncated.
Actual results:
The label is truncated at the begining and end.

Expected results:
According to our evaluators the label needs to line wrap.

Additional info:
I have a patch that I will submit once testing on it finishes.
Comment 2 Irina Boverman 2007-02-14 16:25:32 EST
per 2/12 discussion, Matt continues to work on a patch.
Comment 3 Matt Anderson 2007-03-20 12:29:41 EDT
Created attachment 150507 [details]
cups-lspp patch with support for line wrapped labels

This patch includes changes to filter/common.c which will automatically line
wrap labels that are longer than the page.  The label font for LSPP labels is
switched to a fixed width font in order to perform the calculation, and when
the server is in LSPP mode the label now starts with "LSPP:" so that the filter
knows to handle line wrapping.

This patch also introduces a PerPageLabel config file option, which defaults to
yes.  When an admin sets it to no CUPS will not force a label on each page of
the output.

Lastly this patch adds handling for the lpr option page-label which can
normally be used to apply an additional label to the output, but now in LSPP
mode this option is no longer honored.	If a client attempts to use it the
option is dropped by cupsd.
Comment 8 Klaus Heinrich Kiwi 2007-03-29 19:02:53 EDT
this appears to be working on 1:1.2.4-11.8
Comment 12 errata-xmlrpc 2007-10-31 09:48:43 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.