Author: imario
Date: Mon Aug 28 04:17:08 2006
New Revision: 437662

URL: http://svn.apache.org/viewvc?rev=437662&view=rev
Log:
http+webdav: fixed problem with usage of username as password with 
UserAuthenticator

Modified:
    
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpFileProvider.java
    
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileProvider.java

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpFileProvider.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpFileProvider.java?rev=437662&r1=437661&r2=437662&view=diff
==============================================================================
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpFileProvider.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/http/HttpFileProvider.java
 Mon Aug 28 04:17:08 2006
@@ -1,12 +1,12 @@
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -80,7 +80,7 @@
                        httpClient = 
HttpClientFactory.createConnection(rootName.getHostName(),
                                rootName.getPort(),
                                
UserAuthenticatorUtils.toString(UserAuthenticatorUtils.getData(authData, 
UserAuthenticationData.USERNAME, 
UserAuthenticatorUtils.toChar(rootName.getUserName()))),
-                               
UserAuthenticatorUtils.toString(UserAuthenticatorUtils.getData(authData, 
UserAuthenticationData.USERNAME, 
UserAuthenticatorUtils.toChar(rootName.getPassword()))),
+                               
UserAuthenticatorUtils.toString(UserAuthenticatorUtils.getData(authData, 
UserAuthenticationData.PASSWORD, 
UserAuthenticatorUtils.toChar(rootName.getPassword()))),
                                fileSystemOptions);
                }
                finally

Modified: 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileProvider.java
URL: 
http://svn.apache.org/viewvc/jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileProvider.java?rev=437662&r1=437661&r2=437662&view=diff
==============================================================================
--- 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileProvider.java
 (original)
+++ 
jakarta/commons/proper/vfs/trunk/src/java/org/apache/commons/vfs/provider/webdav/WebdavFileProvider.java
 Mon Aug 28 04:17:08 2006
@@ -1,12 +1,12 @@
 /*
  * Copyright 2002-2005 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -86,7 +86,7 @@
                                rootName.getHostName(),
                                rootName.getPort(),
                                UserAuthenticatorUtils.getData(authData, 
UserAuthenticationData.USERNAME, 
UserAuthenticatorUtils.toChar(rootName.getUserName())),
-                               UserAuthenticatorUtils.getData(authData, 
UserAuthenticationData.USERNAME, 
UserAuthenticatorUtils.toChar(rootName.getPassword())),
+                               UserAuthenticatorUtils.getData(authData, 
UserAuthenticationData.PASSWORD, 
UserAuthenticatorUtils.toChar(rootName.getPassword())),
                                fileSystemOptions);
                }
                finally



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to