Mailinglist Archive: opensuse-bugs (6763 mails)

< Previous Next >
[Bug 732717] cups cant' work for ipp cause 'cups-ipp-missing-validate-job'

https://bugzilla.novell.com/show_bug.cgi?id=732717

https://bugzilla.novell.com/show_bug.cgi?id=732717#c1


--- Comment #1 from Li Bin <bili@xxxxxxxx> 2011-11-25 07:27:53 UTC ---
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/881843

And from the description in that bug, I try to build the cups with below patch,
it works find for me now.

=== modified file 'backend/ipp.c'
--- old/backend/ipp.c 2011-10-27 23:13:49 +0000
+++ new/backend/ipp.c 2011-10-29 00:11:43 +0000
@@ -247,6 +247,7 @@
ppd_file_t *ppd; /* PPD file */
_ppd_cache_t *pc; /* PPD cache and mapping data */
fd_set input; /* Input set for select() */
+ int server_ipp_version;


/*
@@ -830,6 +831,18 @@

supported = cupsDoRequest(http, request, resource);
ipp_status = cupsLastError();
+
+ /* Extract server IPP version, and use this to downgrade */
+ server_ipp_version = supported->request.any.version[0]*10;
+ server_ipp_version += supported->request.any.version[1];
+ if (version > server_ipp_version)
+ {
+ fprintf(stderr, "INFO: Server responded to our IPP/%d.%d request ",
+ version / 10, version % 10);
+ fprintf(stderr, "with an IPP/%d.%d response - downgrading!\n",
+ server_ipp_version / 10, server_ipp_version % 10);
+ version = server_ipp_version;
+ }

fprintf(stderr, "DEBUG: Get-Printer-Attributes: %s (%s)\n",
ippErrorString(ipp_status), cupsLastErrorString());
@@ -1155,6 +1168,7 @@
for (i = 0; i < format_sup->num_values; i ++)
if (!_cups_strcasecmp(final_content_type,
format_sup->values[i].string.text))
{
+ fprintf(stderr, "DEBUG: Selected document_type %s\n",
final_content_type);
document_format = final_content_type;
break;
}
@@ -1165,7 +1179,8 @@
if (!_cups_strcasecmp("application/octet-stream",
format_sup->values[i].string.text))
{
- document_format = "application/octet-stream";
+ fprintf(stderr, "DEBUG: No document_type, forcing to NULL\n");
+ document_format = NULL;
break;
}
}

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References