Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 240679

Summary: system-config-printer comments application/octet-stream in /etc/cups/mime.types
Product: Red Hat Enterprise Linux 4 Reporter: I. Piasecki <irekpias>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.5   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-21 08:32:49 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:
Attachments:
Description Flags
screenshot with cups raw printers none

Description I. Piasecki 2007-05-20 00:59:50 UTC
Description of problem:
Hi.
We use now Centos 4.5 which is klone of Redhat Enterprise Linux 4.5. We noticed
that system-config-printer modyfied file /etc/cups/mime.types in such way: it
commented as default line with application/octet-stream, se we can not print any
more from windows clients: samba+CUPS+raw queues. We think, it shouldn't
happend, system-config-printers shouldn't change mime.types in such way. We
think it is bug in system-config-printer and it is located probably in
util/backend.py in def adjust_mime_type

Version-Release number of selected component (if applicable):
system-config-printer-0.6.116.10-1

How reproducible: 
In simply way :)

Steps to Reproduce:
In /etc/cups/mime.types uncomment application/octet-stream then update or
install again system-config-printer - then application/octet-stream will be
commented again.
  
Actual results:
commenetd entry for application/octet-steram

Expected results:
don't modify our mime.types - we need uncommented entry: application/octet-stream

Additional info:
It is in Centos 4.5 but it should be for Red hat Linux 4.5, cause
system-config-printer is rebuild for redhat source RPM with no changes in source
code

Comment 1 Tim Waugh 2007-05-21 08:32:49 UTC
This is intentional behaviour.  Create a raw queue and you will have that entry
uncommented.

Note: in Red Hat Enterprise Linux 5 the mime.types file is not adjusted by
system-config-printer.

Comment 2 I. Piasecki 2007-05-21 09:59:12 UTC
Created attachment 155082 [details]
screenshot with cups raw printers

Hi. I agree, but we have many cups raw printers, see attachment,
system-config-printers shoudln't change our mime.types ! system-config-printer
don't see, that in our system is raw queue !! So it is bug. When i good
understand, when system-config-printer sees, that in system is one or more raw
queue doesn't comment application/octet-stream ?

Comment 3 Tim Waugh 2007-05-21 10:11:27 UTC
Unless you created those printers using system-config-printer, it will not know
about them.  I'm afraid this was how the tool was designed.  As I said, this
limitation is removed in Red Hat Enterprise Linux 5.

As a work-around you need to create a (dummy) raw queue using system-config-printer.

Comment 4 I. Piasecki 2007-05-21 10:34:40 UTC
Ok, we simply uninstalled system-config-printer - when we don't uses this tool
at all. Thx for Your time. Maybe, when resource will be available, this will be
fixed in RHEL 4 update 6 ...