From 4baece95779dd46a3a59d59d1b7aa5958cf6117d Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 05 Nov 2015 12:25:29 +0000
Subject: [PATCH] OPENDJ-1802 Make ByteString methods more intentional
---
opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java
index 45cf731..b763471 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/StopDS.java
@@ -596,7 +596,7 @@
// Construct the add request to send to the server.
String taskID = UUID.randomUUID().toString();
ByteString entryDN =
- ByteString.valueOf(ATTR_TASK_ID + "=" + taskID + "," +
+ ByteString.valueOfUtf8(ATTR_TASK_ID + "=" + taskID + "," +
SCHEDULED_TASK_BASE_RDN + "," + DN_TASK_ROOT);
ArrayList<RawAttribute> attributes = new ArrayList<>();
@@ -624,7 +624,7 @@
if (proxyAuthzID.isPresent())
{
controls.add(new ProxiedAuthV2Control(
- ByteString.valueOf(proxyAuthzID.getValue())));
+ ByteString.valueOfUtf8(proxyAuthzID.getValue())));
}
AddRequestProtocolOp addRequest = new AddRequestProtocolOp(entryDN, attributes);
--
Gitblit v1.10.0