]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The XML output of ipptool contained empty dictionaries (STR #4136)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 12 Dec 2012 20:51:38 +0000 (20:51 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 12 Dec 2012 20:51:38 +0000 (20:51 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10755 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.6.txt
test/ipptool.c

index 17ba0d3c76c9c7a12cb24a1a273ecbd5c8447505..c59c1ca548fbc7f48ad4cebf3130e5a12808c8c6 100644 (file)
@@ -7,6 +7,7 @@ CHANGES IN CUPS V1.6.2
        - Security: All file, directory, user, and group settings are now stored
          in a separate cups-files.conf configuration file that cannot be set
          through the CUPS web interface or APIs (STR #4223)
+       - The XML output of ipptool contained empty dictionaries (STR #4136)
        - The scheduler did not delete job control backup files (STR #4244)
        - cupsGetPPD3 could return a local PPD instead of the correct remote
          PPD.
index 470d80971087b3ddaf49db0861317c7f75d55147..56d56df676d1649c50cce3dd35eab89d3b60365f 100644 (file)
@@ -2299,8 +2299,7 @@ do_tests(_cups_vars_t *vars,              /* I - Variables */
        puts("<key>StatusCode</key>");
        print_xml_string("string", "skip");
        puts("<key>ResponseAttributes</key>");
-       puts("<dict>");
-       puts("</dict>");
+       puts("<dict />");
       }
       else if (Output == _CUPS_OUTPUT_TEST)
        puts("SKIP]");
@@ -3023,7 +3022,7 @@ do_tests(_cups_vars_t *vars,              /* I - Variables */
     }
 
     if (num_displayed > 0 && !Verbosity && response &&
-        (Output == _CUPS_OUTPUT_TEST || Output == _CUPS_OUTPUT_PLIST))
+        Output == _CUPS_OUTPUT_TEST)
     {
       for (attrptr = response->attrs;
           attrptr != NULL;
@@ -3784,8 +3783,11 @@ print_attr(ipp_attribute_t *attr,        /* I  - Attribute to print */
   {
     if (!attr->name || (group && *group != attr->group_tag))
     {
-      puts("</dict>");
-      puts("<dict>");
+      if (attr->group_tag != IPP_TAG_ZERO)
+      {
+       puts("</dict>");
+       puts("<dict>");
+      }
 
       if (group)
         *group = attr->group_tag;