roku 2004/04/08 13:00:40
Modified: src/blocks/webdav/java/org/apache/cocoon/components/repository/impl WebDAVRepositoryTransactionHelper.java Log: Fixed boolean return values. Now, we delegate the return values of WebdavResource calls. Revision Changes Path 1.3 +4 -2 cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/repository/impl/WebDAVRepositoryTransactionHelper.java Index: WebDAVRepositoryTransactionHelper.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/repository/impl/WebDAVRepositoryTransactionHelper.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- WebDAVRepositoryTransactionHelper.java 8 Apr 2004 19:52:54 -0000 1.2 +++ WebDAVRepositoryTransactionHelper.java 8 Apr 2004 20:00:40 -0000 1.3 @@ -100,6 +100,7 @@ try { return WebDAVUtil.getWebdavResource(this.repo.getAbsoluteURI(uri)).lockMethod(); + } catch (HttpException he) { this.getLogger().error("HTTP Error locking " + uri, he); } catch (IOException ioe) { @@ -117,6 +118,7 @@ try { return WebDAVUtil.getWebdavResource(this.repo.getAbsoluteURI(uri)) .lockMethod(this.credentials.getPrincipal().getName(), timeout); + } catch (HttpException he) { this.getLogger().error("HTTP Error locking " + uri, he); } catch (IOException ioe) { @@ -132,8 +134,8 @@ public boolean unlock(String uri) { try { - WebDAVUtil.getWebdavResource(this.repo.getAbsoluteURI(uri)).unlockMethod(); - return true; + return WebDAVUtil.getWebdavResource(this.repo.getAbsoluteURI(uri)).unlockMethod(); + } catch (HttpException he) { this.getLogger().error("HTTP Error unlocking " + uri, he); } catch (IOException ioe) {