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

Jean-Noel Rouvignac
18.17.2013 0a9135e3444bbefde6188f456b9c9772a816096d
opends/src/server/org/opends/server/replication/server/changelog/je/DraftCNData.java
@@ -33,6 +33,8 @@
import org.opends.server.replication.common.CSN;
import org.opends.server.replication.server.changelog.api.CNIndexRecord;
import org.opends.server.replication.server.changelog.api.ChangelogException;
import org.opends.server.types.DN;
import org.opends.server.types.DirectoryException;
import com.sleepycat.je.DatabaseEntry;
@@ -104,7 +106,8 @@
    {
      String stringData = new String(data, "UTF-8");
      String[] str = stringData.split(FIELD_SEPARATOR, 3);
      return new CNIndexRecord(changeNumber, str[0], str[1], new CSN(str[2]));
      final DN baseDN = DN.decode(str[1]);
      return new CNIndexRecord(changeNumber, str[0], baseDN, new CSN(str[2]));
    }
    catch (UnsupportedEncodingException e)
    {
@@ -112,6 +115,10 @@
      // TODO: i18n
      throw new ChangelogException(Message.raw("need UTF-8 support"));
    }
    catch (DirectoryException e)
    {
      throw new ChangelogException(e);
    }
  }
  /**