printing/cups: pack requested-attributes with IPP_TAG_KEYWORD
authorDavid Disseldorp <ddiss@samba.org>
Tue, 3 Feb 2015 18:26:42 +0000 (19:26 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Feb 2015 00:38:57 +0000 (01:38 +0100)
The CUPS IPP_GET_JOBS requested-attributes array indicates which job
attributes the caller would like in the cupsd response.

Until now, Samba has packed these attributes with a IPP_TAG_NAME
format tag. In recent versions of CUPS, this results in the IPP_GET_JOBS
response only including the job-id and job-printer-uri fields, even with
JobPrivateValues=none configured.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10808

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Feb 10 01:38:58 CET 2015 on sn-devel-104

source3/printing/print_cups.c

index 68f367cc51da9e2aff55252421f903cfc4374311..561e07d2ac35715ffb697cfc986ac71b00048ad9 100644 (file)
@@ -1157,7 +1157,7 @@ static int cups_queue_get(const char *sharename,
        ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
                      "attributes-natural-language", NULL, language->language);
 
-        ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_NAME,
+        ippAddStrings(request, IPP_TAG_OPERATION, IPP_TAG_KEYWORD,
                      "requested-attributes",
                      (sizeof(jattrs) / sizeof(jattrs[0])),
                      NULL, jattrs);