Re: [HIGH] STR #4086: IPP backend incorrectly includes document-format in Create-Job request
Michael Sweet <[email protected]>
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR Closed w/Resolution] Attached file "str4086.patch"... Link: http://www.cups.org/str.php?L4086 Version: 1.5.3 Fix Version: 1.6-current (r10474) _______________________________________________ cups-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/cups-bugs
str4086.patch
(text/plain, 622 B)
Index: backend/ipp.c
===================================================================
--- backend/ipp.c (revision 10471)
+++ backend/ipp.c (working copy)
@@ -2322,7 +2322,7 @@
fprintf(stderr, "DEBUG: job-name=\"%s\"\n", title);
}
- if (format)
+ if (format && op != IPP_CREATE_JOB)
{
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
"document-format", NULL, format);
@@ -2330,7 +2330,7 @@
}
#ifdef HAVE_LIBZ
- if (compression)
+ if (compression && op != IPP_CREATE_JOB)
{
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
"compression", NULL, compression);