Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ECDFA96AF for ; Wed, 21 Mar 2012 13:26:01 +0000 (UTC) Received: (qmail 33127 invoked by uid 500); 21 Mar 2012 13:26:01 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 33041 invoked by uid 500); 21 Mar 2012 13:26:01 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 33026 invoked by uid 99); 21 Mar 2012 13:26:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 13:26:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Mar 2012 13:25:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A34E5CECD0 for ; Wed, 21 Mar 2012 13:25:39 +0000 (UTC) Date: Wed, 21 Mar 2012 13:25:39 +0000 (UTC) From: "Emmanuel Lecharny (Created) (JIRA)" To: dev@directory.apache.org Message-ID: <321337781.41602.1332336339682.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DIRSERVER-1702) Adding an index through annotation does not work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Adding an index through annotation does not work ------------------------------------------------ Key: DIRSERVER-1702 URL: https://issues.apache.org/jira/browse/DIRSERVER-1702 Project: Directory ApacheDS Issue Type: Bug Affects Versions: 2.0.0-M6 Reporter: Emmanuel Lecharny Priority: Critical Fix For: 2.0.0-M7 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira