Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 68626 invoked from network); 17 Dec 2003 13:42:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Dec 2003 13:42:16 -0000 Received: (qmail 20803 invoked by uid 500); 17 Dec 2003 13:42:12 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 20649 invoked by uid 500); 17 Dec 2003 13:42:12 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 20637 invoked by uid 500); 17 Dec 2003 13:42:11 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 20634 invoked from network); 17 Dec 2003 13:42:11 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 17 Dec 2003 13:42:11 -0000 Received: (qmail 68587 invoked by uid 1708); 17 Dec 2003 13:42:14 -0000 Date: 17 Dec 2003 13:42:14 -0000 Message-ID: <20031217134214.68586.qmail@minotaur.apache.org> From: gcasper@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl WebDAVSource.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N gcasper 2003/12/17 05:42:14 Modified: src/blocks/webdav/java/org/apache/cocoon/components/source/impl WebDAVSource.java Log: Interoperability with mod_dav Revision Changes Path 1.14 +11 -2 cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java Index: WebDAVSource.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/webdav/java/org/apache/cocoon/components/source/impl/WebDAVSource.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- WebDAVSource.java 23 Nov 2003 04:30:52 -0000 1.13 +++ WebDAVSource.java 17 Dec 2003 13:42:14 -0000 1.14 @@ -205,9 +205,18 @@ /** * Constructor used by the Traversable methods to build children. */ - private WebDAVSource (WebdavResource source) { + private WebDAVSource (WebdavResource source) + throws HttpException, IOException { this.resource = source; this.systemId = source.getHttpURL().getURI(); + + //fix trailing slash + if (this.resource.isCollection() && (this.systemId.endsWith("/") == false)) { + this.systemId = this.systemId+"/"; + HttpURL httpURL = new HttpURL(this.systemId); + httpURL.setUserInfo(this.principal, this.password); + this.resource.setHttpURL(httpURL); + } } /**