]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix response from Create-Xxx-Subscriptions request to include all Subscription object...
authorMichael R Sweet <msweet@msweet.org>
Wed, 26 Mar 2025 20:04:02 +0000 (16:04 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 26 Mar 2025 20:04:02 +0000 (16:04 -0400)
CHANGES.md
scheduler/ipp.c

index 1e245ac0b3b7308e7e2e28dbd9f5eb7c44d0ac8b..5227c6f118ab5bab4291fee6444d89a054cd8745 100644 (file)
@@ -16,6 +16,8 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
 - Fixed a recursion issue in `ippReadIO`.
 - Fixed validation of dateTime values with time zones more than UTC+11
   (Issue #1201)
+- Fixed attributes returned by the Create-Xxx-Subscriptions requests
+  (Issue #1204)
 
 
 Changes in CUPS v2.4.11 (2024-09-30)
index 089267c868c3d1f73a15f653a1828d6dcfbabef0..96ed025969e97b1194c511bf1454f3ff552df0d7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * IPP routines for the CUPS scheduler.
  *
- * Copyright © 2020-2024 by OpenPrinting
+ * Copyright © 2020-2025 by OpenPrinting
  * Copyright © 2007-2021 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
@@ -6188,8 +6188,7 @@ create_subscriptions(
     }
 
     ippAddSeparator(con->response);
-    ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER,
-                  "notify-subscription-id", sub->id);
+    copy_subscription_attrs(con, sub, /*ra*/NULL, /*exclude*/NULL);
 
     con->response->request.status.status_code = IPP_OK;