mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ian.packer
14.20.2016 b411d8f070868f25feee65d1016edba9f26cbd91
OPENDJ-2626 Base64 decode ldapsearch --control values if necessary

Add missing base64 decoding to match the documented behaviour/syntax
1 files modified
4 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPToolUtils.java 4 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/LDAPToolUtils.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2011-2015 ForgeRock AS
 *      Portions Copyright 2011-2016 ForgeRock AS
 */
package org.opends.server.tools;
import static org.opends.messages.ToolMessages.*;
@@ -171,7 +171,7 @@
    if(valString.charAt(0) == ':')
    {
      controlValue =
          ByteString.valueOfUtf8(valString.substring(1, valString.length()));
          ByteString.valueOfBase64(valString.substring(1, valString.length()));
    } else if(valString.charAt(0) == '<')
    {
      // Read data from the file.