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 B2B1017F4F for ; Sun, 9 Nov 2014 07:54:42 +0000 (UTC) Received: (qmail 79117 invoked by uid 500); 9 Nov 2014 07:54:42 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 79070 invoked by uid 500); 9 Nov 2014 07:54:42 -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 79059 invoked by uid 99); 9 Nov 2014 07:54:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2014 07:54:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Nov 2014 07:54:14 +0000 Received: by mail-wg0-f51.google.com with SMTP id l18so6843685wgh.10 for ; Sat, 08 Nov 2014 23:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=s/+3BP3IfHmz95zGGvmkilJQVQfUslRCKanwRDXArek=; b=Jzr11NRbJpvlWoDMRcEX6P9XFoSXJnD2cuqRl2FxtDgfLzIrgHOlunQUodHtvOnl+w NPBJEw2LJeGe4y0g0uDBEAu+o+NkJNJL/VwuoqI5D0cEPrPnio28JKTqgGaAmIGvcJWo 8SRepOhqePVkPGjIMT8s3BBhutnYtzuayAXtPlBCWzzhMMS29BiH3OikKLHI/E0akT2a vtYmqlf10+rHMNlB3FWh+Jm75uTBT8NwaGwUi6xcUfTF6eXds755B8KeQyG147FLX4mx 90PVk/ZwyihJQBMTDCxizGJZYEoQ1r8LNmA1/9mYV+FXWaX6aFC6HFGLmBw4eK7z3eA2 8QGA== X-Received: by 10.195.11.6 with SMTP id ee6mr32373049wjd.95.1415519608651; Sat, 08 Nov 2014 23:53:28 -0800 (PST) Received: from [192.168.1.12] ([90.24.240.87]) by mx.google.com with ESMTPSA id p8sm12266526wia.1.2014.11.08.23.53.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Nov 2014 23:53:27 -0800 (PST) Message-ID: <545F1D75.7030903@gmail.com> Date: Sun, 09 Nov 2014 08:53:25 +0100 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: dev@directory.apache.org Subject: Re: directory-fortress-core git commit: rolled back change to OrganizationalUnitDAO create method. Combining create default entry into one call broke the fortress base data loads. References: <9fcd780da2424df1b91af5d971367123@git.apache.org> In-Reply-To: <9fcd780da2424df1b91af5d971367123@git.apache.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hmmmm... That's extremely dubious that this change break anything. Can you dump the entry content in both cases ? Le 07/11/14 21:42, smckinney@apache.org a écrit : > Repository: directory-fortress-core > Updated Branches: > refs/heads/master 43d4a2387 -> 77de284f7 > > > rolled back change to OrganizationalUnitDAO create method. Combining create default entry into one call broke the fortress base data loads. > > > Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo > Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/77de284f > Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/77de284f > Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/77de284f > > Branch: refs/heads/master > Commit: 77de284f785f26ebc3756706501cc3d6a8dc4f3a > Parents: 43d4a23 > Author: Shawn McKinney > Authored: Fri Nov 7 14:41:35 2014 -0600 > Committer: Shawn McKinney > Committed: Fri Nov 7 14:41:35 2014 -0600 > > ---------------------------------------------------------------------- > .../fortress/core/ldap/container/OrganizationalUnitDAO.java | 7 +++++++ > 1 file changed, 7 insertions(+) > ---------------------------------------------------------------------- > > > http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/77de284f/src/main/java/org/apache/directory/fortress/core/ldap/container/OrganizationalUnitDAO.java > ---------------------------------------------------------------------- > diff --git a/src/main/java/org/apache/directory/fortress/core/ldap/container/OrganizationalUnitDAO.java b/src/main/java/org/apache/directory/fortress/core/ldap/container/OrganizationalUnitDAO.java > index 551362e..a2bead8 100755 > --- a/src/main/java/org/apache/directory/fortress/core/ldap/container/OrganizationalUnitDAO.java > +++ b/src/main/java/org/apache/directory/fortress/core/ldap/container/OrganizationalUnitDAO.java > @@ -108,10 +108,17 @@ final class OrganizationalUnitDAO extends ApacheDsDataProvider > try > { > LOG.info( "create container dn [{}]", nodeDn ); > + Entry myEntry = new DefaultEntry( nodeDn ); > + myEntry.add( GlobalIds.OBJECT_CLASS, ORGUNIT_OBJ_CLASS ); > + myEntry.add( GlobalIds.OU, oe.getName() ); > + myEntry.add( GlobalIds.DESC, oe.getDescription() ); > + > + /* > Entry myEntry = new DefaultEntry( nodeDn, > GlobalIds.OBJECT_CLASS, ORGUNIT_OBJ_CLASS, > GlobalIds.OU, oe.getName(), > GlobalIds.DESC, oe.getDescription() ); > +*/ > ld = getAdminConnection(); > add( ld, myEntry ); > } >