Bug 479471

Summary: CUPS never gets the MIME type based on the document name for a single file job
Product: Red Hat Enterprise Linux 5 Reporter: Opher Shachar <ophers>
Component: cupsAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.3   
Target Milestone: beta   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-28 18:07: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:

Description Opher Shachar 2009-01-09 21:28:03 UTC
Description of problem:
The scheduler never gets the MIME type based on the document name for a single file job. This is because cupsPrintFile*() doesn't send the document filename for single file submissions.

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

How reproducible:
Always

Steps to Reproduce:
1. echo "Not a Postscript file :)" >notpsfile.ps
2. lp notpsfile.ps
  
Actual results:
The error_log shows job was typed as text/plain.

Expected results:
CUPS was to auto-type the job as application/postscript because in `mime.types' there is a rule that `ps' extension is "application/postscript".

Additional info:
I submitted a STR #3055 upstream and it is fixed in v1.3.10 .

Comment 1 Tim Waugh 2009-01-28 18:07:49 UTC
Both STR #3055 and STR #3059 are now in bug #479635.

*** This bug has been marked as a duplicate of bug 479635 ***