From dev-return-31423-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Oct 01 23:02:52 2009 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 825 invoked from network); 1 Oct 2009 23:02:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 23:02:52 -0000 Received: (qmail 52535 invoked by uid 500); 1 Oct 2009 23:02:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 52403 invoked by uid 500); 1 Oct 2009 23:02:50 -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 52387 invoked by uid 99); 1 Oct 2009 23:02:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 23:02:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 23:02:47 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6269234C046 for ; Thu, 1 Oct 2009 16:02:23 -0700 (PDT) Message-ID: <1203470240.1254438143810.JavaMail.jira@brutus> Date: Thu, 1 Oct 2009 16:02:23 -0700 (PDT) From: "Jeremy Gustie (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-1413) Key pair generation attempts to add duplicate objectClass values In-Reply-To: <194425294.1254419423451.JavaMail.jira@brutus> 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 [ https://issues.apache.org/jira/browse/DIRSERVER-1413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761386#action_12761386 ] Jeremy Gustie commented on DIRSERVER-1413: ------------------------------------------ I found the issue in 1.5.4; though looking at the latest source it does not look like anything has changed in this area of the code. > Key pair generation attempts to add duplicate objectClass values > ---------------------------------------------------------------- > > Key: DIRSERVER-1413 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1413 > Project: Directory ApacheDS > Issue Type: Bug > Components: core > Affects Versions: 1.5.4 > Reporter: Jeremy Gustie > Priority: Trivial > Original Estimate: 0.08h > Remaining Estimate: 0.08h > > The TlsKeyGenerator.addKeyPair(ServerEntry) method adds objectClass values for 'tlsKeyInfo' and 'inetOrgPerson' without checking if they have already been added. This results in the ERROR level message "The value 'inetOrgPerson' is incorrect, it hasn't been added" being emitted from DefaultServerAttribute.add. In the case of the system administrator created by the DefaultDirectoryService, this error message always appears on the first load as the 'inetOrgPerson' value is explicitly added before calling addKeyPair. Replacing the objectClass.add(...) call with !objectClass.contains(...)/objectClass.add(...) would prevent this error message from appearing. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.