From 475b62de777edb285f32607cd4501b9c9d551d63 Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Mon, 19 Nov 2012 15:25:30 +0000
Subject: [PATCH] Fix OPENDJ-502 DSML gateway not correctly forwarding modifications to userCertificate;binary attributes
---
opends/src/dsml/org/opends/dsml/protocol/DSMLCompareOperation.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/opends/src/dsml/org/opends/dsml/protocol/DSMLCompareOperation.java b/opends/src/dsml/org/opends/dsml/protocol/DSMLCompareOperation.java
index c8c4706..b01e399 100644
--- a/opends/src/dsml/org/opends/dsml/protocol/DSMLCompareOperation.java
+++ b/opends/src/dsml/org/opends/dsml/protocol/DSMLCompareOperation.java
@@ -91,7 +91,8 @@
// Read the attribute name and value for the compare request.
AttributeValueAssertion attrValAssertion = compareRequest.getAssertion();
String attrName = attrValAssertion.getName();
- ByteString attrValue = ByteString.valueOf(attrValAssertion.getValue());
+ Object assertion = attrValAssertion.getValue();
+ ByteString attrValue = ByteStringUtility.convertValue(assertion);
ByteString dnStr = ByteString.valueOf(compareRequest.getDn());
// Create and send the LDAP compare request to the server.
--
Gitblit v1.10.0