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

Gaetan Boismal
06.06.2015 913d241f0084ed7feb6e2efe3992d11275e5811c
OPENDJ-1714 OPENDJ-1725 Fix UI bug

In control panel, the pluggable backend index list of rebuild indexes task shown id2childrencount.
This commit fixes the bug by adding the index to the index not to specify list.
It also takes the opportunity to use constants instead of harcoded string values for index names.
1 files modified
4 ■■■ changed files
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/task/RebuildIndexTask.java 4 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/task/RebuildIndexTask.java
@@ -46,6 +46,7 @@
import org.opends.guitools.controlpanel.datamodel.VLVIndexDescriptor;
import org.opends.guitools.controlpanel.ui.ProgressDialog;
import org.opends.guitools.controlpanel.util.Utilities;
import org.opends.server.backends.pluggable.SuffixContainer;
import org.opends.server.tools.RebuildIndex;
/**
@@ -58,7 +59,8 @@
  /**
   * The indexes that must not be specified in the command-line.
   */
  public static final String[] INDEXES_NOT_TO_SPECIFY = { "id2children", "id2subtree" };
  public static final String[] INDEXES_NOT_TO_SPECIFY = { SuffixContainer.ID2CHILDREN_INDEX_NAME,
    SuffixContainer.ID2SUBTREE_INDEX_NAME, SuffixContainer.ID2CHILDREN_COUNT_NAME };
  /**
   * Constructor of the task.