Bug 228107
Summary: | [LSPP] Labels for labeled printing don't linewrap | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Matt Anderson <mra> | ||||
Component: | cups | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED ERRATA | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.0 | CC: | iboverma, klaus, krisw, linda.knippers, sgrubb | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | RHSA-2007-1020 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-10-31 13:48:43 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 224041 | ||||||
Attachments: |
|
Description
Matt Anderson
2007-02-10 00:01:35 UTC
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: Everytime 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. per 2/12 discussion, Matt continues to work on a patch. 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.
this appears to be working on 1:1.2.4-11.8 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. http://rhn.redhat.com/errata/RHSA-2007-1020.html |