From fde3b8a3181c3e81072fe25032c5bc1f4802983c Mon Sep 17 00:00:00 2001 From: Neil Wilson Date: Mon, 20 May 2024 09:33:11 -0500 Subject: [PATCH] Fix a message typo Fixed a typo in a message used to describe an error that could occur when attempting to decode a JSON-formatted representation of a control. In the event that the JSON object was missing the required "criticality" field, the message would incorrectly report that it was missing the "oid" field (although it did still indicate that the issue was with the criticality). --- src/com/unboundid/ldap/sdk/JSONControlDecodeHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/unboundid/ldap/sdk/JSONControlDecodeHelper.java b/src/com/unboundid/ldap/sdk/JSONControlDecodeHelper.java index f12974d38..695ed5a89 100644 --- a/src/com/unboundid/ldap/sdk/JSONControlDecodeHelper.java +++ b/src/com/unboundid/ldap/sdk/JSONControlDecodeHelper.java @@ -176,7 +176,7 @@ public JSONControlDecodeHelper(@NotNull final JSONObject controlObject, { throw new LDAPException(ResultCode.DECODING_ERROR, ERR_JSON_CONTROL_MISSING_CRITICALITY.get( - controlObject.toSingleLineString(), JSON_FIELD_OID)); + controlObject.toSingleLineString(), JSON_FIELD_CRITICALITY)); } criticality = criticalityObject;