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 2012/05/16 19:33:29 UTC

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

Author: ggregory
Date: Wed May 16 17:33:28 2012
New Revision: 1339277

URL: http://svn.apache.org/viewvc?rev=1339277&view=rev
Log:
[VFS-327] UriParser.canonicalizePath possible NPE for filenameParser.

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/UriParser.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/UriParser.java?rev=1339277&r1=1339276&r2=1339277&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/UriParser.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/UriParser.java Wed May 16 17:33:28 2012
@@ -490,8 +490,7 @@ public final class UriParser
                 }
                 char value = (char) (dig1 << BITS_IN_HALF_BYTE | dig2);
 
-                boolean match = value == '%'
-                        || (fileNameParser != null && fileNameParser.encodeCharacter(value));
+                boolean match = value == '%' || fileNameParser.encodeCharacter(value);
 
                 if (match)
                 {

Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1339277&r1=1339276&r2=1339277&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Wed May 16 17:33:28 2012
@@ -23,34 +23,37 @@
 
   <body>
     <release version="2.1" date="TBD" description="">
-      <action issue="VFS-353" dev="ggregory" type="update" due-to="bergander">
+      <action issue="VFS-327" dev="ggregory" type="update" due-to="sebb@apache.org">
+        UriParser.canonicalizePath possible NPE for filenameParser.
+      </action>
+      <action issue="VFS-353" dev="ggregory" type="fix" due-to="bergander">
         [FTP] Client should call logout before disconnecting.
       </action>
-      <action issue="VFS-408" dev="ggregory" type="update" due-to="anilm2@yahoo.com">
+      <action issue="VFS-408" dev="ggregory" type="fix" due-to="anilm2@yahoo.com">
         CompressedFileFileObject Exception thrown when container file has no extension.
       </action>
       <action issue="VFS-400" dev="ggregory" type="add">
         Add a FileSelector based on regular expressions.
       </action>
-      <action issue="VFS-258" dev="ggregory" type="update" due-to="mzawirski">
+      <action issue="VFS-258" dev="ggregory" type="fix" due-to="mzawirski">
         [SFTP][RAM] Unsafe casting to AbstractFileObject subclasses in doRename().
       </action>
-      <action issue="VFS-254" dev="ggregory" type="update" due-to="mzawirski">
+      <action issue="VFS-254" dev="ggregory" type="add" due-to="mzawirski">
         Let FileObject and FileContent extend java.io.Closeable.
       </action>
-      <action issue="VFS-413" dev="ggregory" type="update" due-to="polivenok">
+      <action issue="VFS-413" dev="ggregory" type="fix" due-to="polivenok">
         [FTP] No support for FTP servers with non Latin-1 control encoding.
       </action>
-      <action issue="VFS-252" dev="ggregory" type="update">
+      <action issue="VFS-252" dev="ggregory" type="add">
         [SMB] SmbFileObject does not support setLastModifiedTime while jcifs supports it.
       </action>
-      <action issue="VFS-200" dev="ggregory" type="update">
+      <action issue="VFS-200" dev="ggregory" type="fix">
         [SFTP] Failure when files are very large.
       </action>
       <action issue="VFS-416" dev="ggregory" type="update">
         [SFTP] Update Jsch to version 0.1.48 from 0.1.47.
       </action>
-      <action issue="VFS-296" dev="ggregory" type="add" due-to="andreasp">
+      <action issue="VFS-296" dev="ggregory" type="fix" due-to="andreasp">
         [FTP] FTP socket timeout setting doesn't work if connect hangs.
       </action>
       <action issue="VFS-313" dev="ggregory" type="add" due-to="bdavis@saintandreas.org">