Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 82524 invoked from network); 9 May 2008 11:23:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2008 11:23:17 -0000 Received: (qmail 26993 invoked by uid 500); 9 May 2008 11:23:18 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 26961 invoked by uid 500); 9 May 2008 11:23:18 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 26950 invoked by uid 99); 9 May 2008 11:23:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 May 2008 04:23:18 -0700 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; Fri, 09 May 2008 11:22:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B5AA0234C10A for ; Fri, 9 May 2008 04:22:55 -0700 (PDT) Message-ID: <884153947.1210332175742.JavaMail.jira@brutus> Date: Fri, 9 May 2008 04:22:55 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-1578) Jcr2Spi: UpdateTest#testUpdateRemovesExtraProperty and #testUpdateAddsMissingSubtree fail occasionally In-Reply-To: <988158262.1210252375628.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595563#action_12595563 ] Jukka Zitting commented on JCR-1578: ------------------------------------ Confirming that the fix works for me. Thanks! > Jcr2Spi: UpdateTest#testUpdateRemovesExtraProperty and #testUpdateAddsMissingSubtree fail occasionally > ------------------------------------------------------------------------------------------------------ > > Key: JCR-1578 > URL: https://issues.apache.org/jira/browse/JCR-1578 > Project: Jackrabbit > Issue Type: Bug > Components: jackrabbit-jcr2spi > Reporter: angela > Assignee: angela > Priority: Minor > Fix For: 1.5 > > > issue reported by jukka: > Every now and then I see the following jcr2spi test failures on a > clean checkout: > Tests in error: > testUpdateRemovesExtraProperty(org.apache.jackrabbit.jcr2spi.UpdateTest) > testUpdateAddsMissingSubtree(org.apache.jackrabbit.jcr2spi.UpdateTest) > The problem seems to be caused by the test cases automatically > choosing the "security" workspace for the update test. The reason why > the tests only fail occasionally is that currently the ordering of the > string array returned by getAccessibleWorkspaceNames() is not > deterministic. > I can work around the issue by making > RepositoryImpl.getWorkspaceNames() explicitly sort the returned array > of names, but a more proper fix would probably be to ensure that the > workspace selected by UpdateTest is useful for the test. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.