Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7561A92EC for ; Sun, 22 Jul 2012 12:21:39 +0000 (UTC) Received: (qmail 63211 invoked by uid 500); 22 Jul 2012 12:21:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 62851 invoked by uid 500); 22 Jul 2012 12:21:36 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 62823 invoked by uid 99); 22 Jul 2012 12:21:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2012 12:21:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 1C53F1404B4 for ; Sun, 22 Jul 2012 12:21:34 +0000 (UTC) Date: Sun, 22 Jul 2012 12:21:34 +0000 (UTC) From: "Gary D. Gregory (JIRA)" To: issues@commons.apache.org Message-ID: <2132939799.87766.1342959695118.JavaMail.jiratomcat@issues-vm> In-Reply-To: <874630738.58346.1342453356051.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (VFS-428) DavException: (301) Moved Permanently MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420150#comment-13420150 ] Gary D. Gregory commented on VFS-428: ------------------------------------- Some questions: Are you saying that VFS should add a / to certain requests? Which ones? Are you saying that this is a code bug or a documentation bug? Should VFS offer an option to follow redirects? Can you post your whole configuration with instructions such that it can be reproduced by anyone? > DavException: (301) Moved Permanently > -------------------------------------- > > Key: VFS-428 > URL: https://issues.apache.org/jira/browse/VFS-428 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 2.0, 2.1 > Environment: Apache 2.2.22 as Testerver and setted up like http://commons.apache.org/vfs/testserver.html (but changed the 'crypt' password) > Reporter: Robert Kornmesser > Priority: Blocker > Labels: webdav > > Running the WebdavProviderTestCase using mvn -P webdav clean test -Dtest.webdav.uri=webdav://vfsusr:vfstest@localhost/vfstest -Dtest=WebdavProviderTestCase results in > {code}DavException: (301) Moved Permanently > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.645 sec <<< FAILURE! > Results : > Tests in error: > junit.framework.TestSuite@55c9be00(org.apache.commons.vfs2.provider.webdav.test.WebdavProviderTestCase$1): Could not determine the type of file "webdav://vfsusr:****@localhost/vfstest/read-tests". > Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 > {code} > The deeper Problem is, that the HttpClient using by VFS does not append a trailing slash and mod_dir of httpd has "DirectorySlash On" per default. So httpd send 301 redirect to the same url with / appended. > I know that for this reason of problematic webdav client apache introduced "redirect-carefully" for some user agents using the "BrowserMatch" directive. So I just tried adding the following into my directive > {code} > BrowserMatch "^Jakarta-Commons-VFS" redirect-carefully > BrowserMatch "^Jakarta Commons-HttpClient/3.0" redirect-carefully > BrowserMatch "^Jakarta Commons-HttpClient/3.1" redirect-carefully > {code} > Its needed to have Jakarta-Commons-VFS *and* Jakarta Commons-HttpClient because of two requests from commons vfs using two different user agents. > But instead of solving the issue, I get for every FileObject.getChildren() call at least one FileObject of type imaginary with the same basename as the parent. Thats not a problem at all (besides that this is totally wrong!) but deleting a parent just dont work anymore, because of an *non-existent* imaginary file inside the dir which cannot be deleted of course. > To cut a long story short, what is the right httpd webdav server config to use 2.0 Release version of VFS? -- 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