[cups.bugs] [LOW] STR #3055: The scheduler never gets the MIME type based on the document name for a single file job
Opher Shachar
ophers at ladpc.co.il
Fri Jan 9 10:47:46 PST 2009
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Please look at scheduler/ipp.c line 7637:
doc_name = ippFindAttribute(con->request, "document-name",
IPP_TAG_NAME);
filetype = mimeFileType(MimeDatabase, con->filename,
doc_name ? doc_name->values[0].string.text :
NULL,
&compression);
The scheduler is looking for an attribute "document-name", BUT the client
ONLY sends this attribute when printing more than one file per job:
in cups/util.c this attribute is sent in cupsPrintFiles2 ONLY when
num_files > 1 .
Suggested patch attached.
Regards,
Opher Shachar.
Link: http://www.cups.org/str.php?L3055
Version: 1.3-current
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: document-name.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20090109/dbfa8e76/attachment.ksh>
More information about the cups
mailing list