commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r945200 - in /commons/proper/compress/trunk: RELEASE-NOTES.txt src/changes/changes.xml src/test/java/org/apache/commons/compress/archivers/TarTestCase.java src/test/resources/COMPRESS-114.tar
Date Mon, 17 May 2010 15:09:30 GMT
Author: sebb
Date: Mon May 17 15:09:29 2010
New Revision: 945200

URL: http://svn.apache.org/viewvc?rev=945200&view=rev
Log:
COMPRESS-118:  TarUtils.parseName does not properly handle characters outside the range 0-127


Added:
    commons/proper/compress/trunk/src/test/resources/COMPRESS-114.tar   (with props)
Modified:
    commons/proper/compress/trunk/RELEASE-NOTES.txt
    commons/proper/compress/trunk/src/changes/changes.xml
    commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java

Modified: commons/proper/compress/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/RELEASE-NOTES.txt?rev=945200&r1=945199&r2=945200&view=diff
==============================================================================
--- commons/proper/compress/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/compress/trunk/RELEASE-NOTES.txt Mon May 17 15:09:29 2010
@@ -36,6 +36,7 @@ o ArchiveEntry now has a getLastModified
 o COMPRESS-78:  Add a BZip2Utils class modelled after GZipUtils Thanks to Jukka Zitting.

 
 Fixed Bugs:
+o COMPRESS-118:  TarUtils.parseName does not properly handle characters outside the range
0-127 
 o COMPRESS-107:  ArchiveStreamFactory does not recognise tar files created by Ant 
 o COMPRESS-110:  Support "ustar" prefix field, which is used when file paths are longer
        than 100 characters. 

Modified: commons/proper/compress/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/changes/changes.xml?rev=945200&r1=945199&r2=945200&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/changes/changes.xml (original)
+++ commons/proper/compress/trunk/src/changes/changes.xml Mon May 17 15:09:29 2010
@@ -45,6 +45,9 @@ The <action> type attribute can be add,u
   </properties>
   <body>
     <release version="1.1" date="as in SVN" description="Release 1.1">
+      <action issue="COMPRESS-118" type="fix" date="2010-05-17">
+       TarUtils.parseName does not properly handle characters outside the range 0-127
+      </action>
       <action issue="COMPRESS-112" type="update" date="2010-05-13">
        ArArchiveInputStream does not handle GNU extended filename records (//)
       </action>

Modified: commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java?rev=945200&r1=945199&r2=945200&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
(original)
+++ commons/proper/compress/trunk/src/test/java/org/apache/commons/compress/archivers/TarTestCase.java
Mon May 17 15:09:29 2010
@@ -114,6 +114,17 @@ public final class TarTestCase extends A
         out.close();
     }
 
+    public void testCOMPRESS114() throws Exception {
+        final File input = getFile("compress-114.tar");
+        final InputStream is = new FileInputStream(input);
+        final ArchiveInputStream in = new ArchiveStreamFactory().createArchiveInputStream("tar",
is);
+        TarArchiveEntry entry = (TarArchiveEntry)in.getNextEntry();
+        assertEquals("3±±±F06±W2345±ZB±la±±±±±±±±BLA", entry.getName());
+        entry = (TarArchiveEntry)in.getNextEntry();
+        assertEquals("0302-0601-3±±±F06±W2345±ZB±la±±±±±±±±BLA",entry.getName());
+        in.close();
+    }
+
     public void testDirectoryEntryFromFile() throws Exception {
         File[] tmp = createTempDirAndFile();
         File archive = null;

Added: commons/proper/compress/trunk/src/test/resources/COMPRESS-114.tar
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/test/resources/COMPRESS-114.tar?rev=945200&view=auto
==============================================================================
Binary file - no diff available.

Propchange: commons/proper/compress/trunk/src/test/resources/COMPRESS-114.tar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message