Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 174C3BF3A for ; Thu, 12 Jan 2012 08:24:51 +0000 (UTC) Received: (qmail 66545 invoked by uid 500); 12 Jan 2012 08:24:45 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 64400 invoked by uid 500); 12 Jan 2012 08:24:17 -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 62466 invoked by uid 99); 12 Jan 2012 08:24:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 08:24:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 08:23:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CF87A1467D0 for ; Thu, 12 Jan 2012 08:23:38 +0000 (UTC) Date: Thu, 12 Jan 2012 08:23:38 +0000 (UTC) From: "David Buchmann (Created) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1731217071.33734.1326356618851.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (JCR-3205) Lock timeout not working with jcr2spi 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 Lock timeout not working with jcr2spi ------------------------------------- Key: JCR-3205 URL: https://issues.apache.org/jira/browse/JCR-3205 Project: Jackrabbit Content Repository Issue Type: Bug Components: jackrabbit-jcr2spi, jackrabbit-spi2jcr Affects Versions: 2.3.6 Reporter: David Buchmann trying to set the lock timeout when creating a lock seems not to work over the davex transport. the timeout is always 2147483. this was my test code: import javax.jcr.*; import javax.jcr.lock.*; import org.apache.jackrabbit.jcr2spi.RepositoryImpl; import org.apache.jackrabbit.jcr2spi.config.RepositoryConfig; String url = "http://localhost:8080/server/"; String workspace = "tests"; RepositoryConfig config = new RepositoryConfigImplTest(repoUrl); Repository repo = RepositoryImpl.create(config); Credentials sc = new SimpleCredentials("admin","admin".toCharArray()); Session s = repo.login(sc,workspace); Node t; if (s.getRootNode().hasNode("test")) { t = s.getRootNode().getNode("test"); } else { t = s.getRootNode().addNode("test", "nt:unstructured"); } t.addMixin("mix:lockable"); s.save(); LockManager m = s.getWorkspace().getLockManager(); Lock l = m.lock(t.getPath(), false, true, 10, "me"); System.out.println(l.getSecondsRemaining()); and the output is 2147483 the relevant communication fragment is below, i attach the full trace in case i miss something. LOCK /server/tests/jcr%3aroot/test HTTP/1.1 Timeout: Second-10 Depth: 0 Link: ; rel="http://www.day.com/jcr/webdav/1.0/session-id" Authorization: Basic YWRtaW46YWRtaW4= User-Agent: Jakarta Commons-HttpClient/3.0 Host: localhost:8080 Content-Length: 254 Content-Type: text/xml; charset=UTF-8 me HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: 450 Lock-Token: Server: Jetty(6.1.x) 0Second-2147483adminaa724c28-3c24-41e8-a3b4-9fc129adf732 by the way: if i do not explicitly logout before the program exits, the lock is also not released even though it is session based. should the session not trigger a logout on destruction? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira