Directory ApacheDS
  1. Directory ApacheDS
  2. DIRSERVER-1702

Adding an index through annotation does not work

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M6
    • Fix Version/s: 2.0.0-M7
    • Component/s: None
    • Labels:
      None

      Description

      The added indexes though annotations, like with :

      @CreateDS(name = "ClientApiPerfTestDS", partitions =
      {
      @CreatePartition(
      name = "example",
      suffix = "dc=example,dc=com",
      contextEntry = @ContextEntry(
      entryLdif =
      "dn: dc=example,dc=com\n" +
      "dc: example\n" +
      "objectClass: top\n" +
      "objectClass: domain\n\n"),
      indexes =

      { @CreateIndex(attribute = "objectClass"), @CreateIndex(attribute = "dc"), @CreateIndex(attribute = "ou") }

      )
      })

      does not create any index.

      Injecting new index through the DirectoryServiceFactory does not work either :

      DirectoryServiceFactory dsFactory = DefaultDirectoryServiceFactory.class.newInstance();
      dsFactory.getPartitionFactory().addIndex( systemPartition, "gidNumber", 100 );

      does not add the index for the gidNumber AT.

        Activity

        Emmanuel Lecharny made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Show
        Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/viewvc?rev=1303405&view=rev
        Emmanuel Lecharny created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Emmanuel Lecharny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development