|
|
Choosing A Webhost: |
Updated: (JCR-284) Locking two same-name siblings and unlocking first appar: msg#00171apache.jackrabbit.devel
[ http://issues.apache.org/jira/browse/JCR-284?page=all ] Jukka Zitting updated JCR-284: ------------------------------ Fix Version: 1.0 (was: 1.1) Version: (was: 1.1) > Locking two same-name siblings and unlocking first apparently unlocks second > instead. > ------------------------------------------------------------------------------------- > > Key: JCR-284 > URL: http://issues.apache.org/jira/browse/JCR-284 > Project: Jackrabbit > Type: Bug > Components: locks > Reporter: Dominique Pfister > Assignee: Dominique Pfister > Fix For: 1.0 > > Executing the following test that unlocks the first of two locked same-name > siblings: > public void testLocking() throws RepositoryException { > Session jcrSession = ((S1SessionImpl) session).getSession(); > Node rootNode = jcrSession.getRootNode(); > Node n1 = rootNode.addNode("path"); > n1.addMixin("mix:lockable"); > Node n2 = rootNode.addNode("path"); > n2.addMixin("mix:lockable"); > jcrSession.save(); > n1.lock(true, true); > n2.lock(true, true); > System.out.println("n1.isLocked() = " + n1.isLocked()); > System.out.println("n2.isLocked() = " + n2.isLocked()); > assertTrue(n1.isLocked()); > assertTrue(n2.isLocked()); > n1.save(); > n1.unlock(); > System.out.println("n1.isLocked() = " + n1.isLocked()); > System.out.println("n2.isLocked() = " + n2.isLocked()); > assertFalse(n1.isLocked()); > assertTrue(n2.isLocked()); > } > Results in: > n1.isLocked() = true > n2.isLocked() = true > n1.isLocked() = true > n2.isLocked() = false > which is wrong.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Reopened: (JCR-284) Locking two same-name siblings and unlocking first apparently unlocks second instead., Jukka Zitting (JIRA) |
|---|---|
| Next by Date: | Closed: (JCR-284) Locking two same-name siblings and unlocking first apparently unlocks second instead., Jukka Zitting (JIRA) |
| Previous by Thread: | Reopened: (JCR-284) Locking two same-name siblings and unlocking first apparently unlocks second instead., Jukka Zitting (JIRA) |
| Next by Thread: | Closed: (JCR-284) Locking two same-name siblings and unlocking first apparently unlocks second instead., Jukka Zitting (JIRA) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |