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

Jean-Noel Rouvignac
11.34.2014 67b0196d48f07937a9e333a091599c810d5bb538
opendj3-server-dev/src/server/org/opends/server/backends/jeb/DN2URI.java
@@ -585,10 +585,11 @@
     */
    byte[] baseDN = JebFormat.dnToDNKey(searchOp.getBaseDN(),
                                          prefixRDNComponents);
    final byte special = 0x00;
    byte[] suffix = Arrays.copyOf(baseDN, baseDN.length+1);
    suffix[suffix.length-1] = 0x00;
    byte[] end = suffix.clone();
    end[end.length-1] = (byte) (end[end.length-1] + 1);
    suffix[suffix.length - 1] = special;
    byte[] end = Arrays.copyOf(suffix, suffix.length);
    end[end.length - 1] = (byte) (special + 1);
    /*
     * Set the ending value to a value of equal length but slightly