Skip to content

Commit 98edd72

Browse files
committed
Fix response from Create-Xxx-Subscriptions request to include all Subscription object attributes (Issue #1204)
1 parent bc8367e commit 98edd72

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
1616
- Fixed a recursion issue in `ippReadIO`.
1717
- Fixed validation of dateTime values with time zones more than UTC+11
1818
(Issue #1201)
19+
- Fixed attributes returned by the Create-Xxx-Subscriptions requests
20+
(Issue #1204)
1921

2022

2123
Changes in CUPS v2.4.11 (2024-09-30)

scheduler/ipp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* IPP routines for the CUPS scheduler.
33
*
4-
* Copyright © 2020-2024 by OpenPrinting
4+
* Copyright © 2020-2025 by OpenPrinting
55
* Copyright © 2007-2021 by Apple Inc.
66
* Copyright © 1997-2007 by Easy Software Products, all rights reserved.
77
*
@@ -6188,8 +6188,7 @@ create_subscriptions(
61886188
}
61896189

61906190
ippAddSeparator(con->response);
6191-
ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER,
6192-
"notify-subscription-id", sub->id);
6191+
copy_subscription_attrs(con, sub, /*ra*/NULL, /*exclude*/NULL);
61936192

61946193
con->response->request.status.status_code = IPP_OK;
61956194

0 commit comments

Comments
 (0)