You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/02/06 16:22:43 UTC

svn commit: r1443013 - in /commons/proper/vfs/trunk: core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java src/changes/changes.xml

Author: ggregory
Date: Wed Feb  6 15:22:43 2013
New Revision: 1443013

URL: http://svn.apache.org/viewvc?rev=1443013&view=rev
Log:
[VFS-452] HttpFileObject read/write attributes should reflect underlying FileSystem capabilities.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java
    commons/proper/vfs/trunk/src/changes/changes.xml

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java?rev=1443013&r1=1443012&r2=1443013&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/http/HttpFileObject.java Wed Feb  6 15:22:43 2013
@@ -187,6 +187,12 @@ public class HttpFileObject<FS extends H
         }
     }
 
+    @Override
+    protected boolean doIsWriteable() throws Exception
+    {
+        return false;
+    }
+
     /**
      * Lists the children of this file.
      */
@@ -201,13 +207,13 @@ public class HttpFileObject<FS extends H
         return URIUtil.encodePath(decodedPath);
     }
 
+
     @Override
     protected FileContentInfoFactory getFileContentInfoFactory()
     {
         return new HttpFileContentInfoFactory();
     }
 
-
     protected boolean getFollowRedirect()
     {
         return followRedirect;

Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1443013&r1=1443012&r2=1443013&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Wed Feb  6 15:22:43 2013
@@ -26,6 +26,9 @@
 <!--       <action issue="VFS-443" dev="ggregory" type="update" due-to="nickallen"> -->
 <!--     	[Local] Need an easy way to convert from a FileObject to a File. -->
 <!--       </action> -->
+      <action issue="VFS-452" dev="ggregory" type="fix" due-to="Jean-Marc Borer">
+        HttpFileObject read/write attributes should reflect underlying FileSystem capabilities.
+      </action>
       <action issue="VFS-285" dev="tn" type="fix" due-to="Kirill Safonov">
         AbstractFileObject.getChildren() may corrupt its internal state if a filename
         can not be resolved.