Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 29930 invoked from network); 28 Aug 2005 17:14:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Aug 2005 17:14:11 -0000 Received: (qmail 42030 invoked by uid 500); 28 Aug 2005 17:14:10 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 42017 invoked by uid 99); 28 Aug 2005 17:14:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Aug 2005 10:14:09 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 6BBB912F for ; Sun, 28 Aug 2005 19:14:05 +0200 (CEST) Message-ID: <190194640.1125249245439.JavaMail.jira@ajax.apache.org> Date: Sun, 28 Aug 2005 19:14:05 +0200 (CEST) From: "Edgar Poce (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Resolved: (JCR-201) [contrib-bdb] initialization fails if directory doesn't exist In-Reply-To: <586266336.1125150544962.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-201?page=all ] Edgar Poce resolved JCR-201: ---------------------------- Resolution: Fixed Fixed as suggested, thanks fabrizio. > [contrib-bdb] initialization fails if directory doesn't exist > ------------------------------------------------------------- > > Key: JCR-201 > URL: http://issues.apache.org/jira/browse/JCR-201 > Project: Jackrabbit > Type: Bug > Versions: 1.0 > Reporter: fabrizio giustina > Assignee: Edgar Poce > Priority: Minor > > BerkeleyDBPersistenceManager initialization fails if the directory configured doesn't exist (this doesn't happen with other PMs). > This can easily be fixed in the persistence manager, by making it create all the directories in the path (actually it only creates the last -db- directory). > The trivial patch is to replace envDir.mkdir() to envDir.mkdirs() (note the final "s") at BerkeleyDBPersistenceManager line 73: > if (!envDir.exists()) > envDir.mkdir(); > should be: > if (!envDir.exists()) > envDir.mkdirs(); > (I am not submitting any svn diff since the manual fix sounds so trivial, it's easier to change it manually) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira