[jira] [Commented] (COMPRESS-230) Tar archive is not being read correctly
[ https://issues.apache.org/jira/browse/COMPRESS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678988#comment-13678988 ] Stefan Bodewig commented on COMPRESS-230: - Directories are only to be expected inside the archive if they've been added explicitly. TAR - like all othe archiving formats - doesn't need directory entries at all. It is very common to create directories as needed when extracting archives. > Tar archive is not being read correctly > --- > > Key: COMPRESS-230 > URL: https://issues.apache.org/jira/browse/COMPRESS-230 > Project: Commons Compress > Issue Type: Bug > Components: Archivers >Affects Versions: 1.5 > Environment: Ubuntu 12.04 > java version "1.7.0_21" > OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1) > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) >Reporter: Ken Keefe > Attachments: DetExpExample_mob23.tar > > > The TAR archiver is not reading existing tar files correctly. It doesn't > happen with every tar, just some of my tar files. I'll attach an example tar > file. The first file it reads is not the root directory, but another file in > the tar with "._" appended to the front of the file name for some reason. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COMPRESS-230) Tar archive is not being read correctly
[ https://issues.apache.org/jira/browse/COMPRESS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13676088#comment-13676088 ] Ken Keefe commented on COMPRESS-230: So, should I not expect the directory to be listed first in the TarArchiveInputStream? When I write my code to untar something, do I need to check for each file I get from that stream that the parent directory exists and if it doesn't I should create it? Thanks very much for the help! > Tar archive is not being read correctly > --- > > Key: COMPRESS-230 > URL: https://issues.apache.org/jira/browse/COMPRESS-230 > Project: Commons Compress > Issue Type: Bug > Components: Archivers >Affects Versions: 1.5 > Environment: Ubuntu 12.04 > java version "1.7.0_21" > OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1) > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) >Reporter: Ken Keefe > Attachments: DetExpExample_mob23.tar > > > The TAR archiver is not reading existing tar files correctly. It doesn't > happen with every tar, just some of my tar files. I'll attach an example tar > file. The first file it reads is not the root directory, but another file in > the tar with "._" appended to the front of the file name for some reason. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COMPRESS-230) Tar archive is not being read correctly
[ https://issues.apache.org/jira/browse/COMPRESS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675737#comment-13675737 ] Stefan Bodewig commented on COMPRESS-230: - This is because your archive actually contains those files :-) {code} $ tar --version tar (GNU tar) 1.26 $ tar tvf DetExpExample_mob23.tar | head -rw-r--r-- kjkeefe/staff 225 2010-03-30 06:09 detExpExample_mob23/._detExpExample_mob23.prj -rw-r--r-- kjkeefe/staff 3654 2010-03-30 06:09 detExpExample_mob23/detExpExample_mob23.prj -rw-r--r-- kjkeefe/staff 225 2010-03-30 06:08 detExpExample_mob23/._Makefile.project -rw-r--r-- kjkeefe/staff 986 2010-03-30 06:08 detExpExample_mob23/Makefile.project -rw-r--r-- kjkeefe/staff 225 2010-03-30 06:07 detExpExample_mob23/Atomic/det/._det.san -rw-r--r-- kjkeefe/staff 26610 2010-03-30 06:07 detExpExample_mob23/Atomic/det/det.san -rw-r--r-- kjkeefe/staff 225 2010-03-30 06:07 detExpExample_mob23/Atomic/det/._detSAN.cpp -rw-r--r-- kjkeefe/staff 11719 2010-03-30 06:07 detExpExample_mob23/Atomic/det/detSAN.cpp -rw-r--r-- kjkeefe/staff 225 2010-03-30 06:07 detExpExample_mob23/Atomic/det/._detSAN.h -rw-r--r-- kjkeefe/staff 4641 2010-03-30 06:07 detExpExample_mob23/Atomic/det/detSAN.h {code} what you see are most likely Mac resource forks https://en.wikipedia.org/wiki/Resource_fork that your native tar implementation on MacOS X hides from you. > Tar archive is not being read correctly > --- > > Key: COMPRESS-230 > URL: https://issues.apache.org/jira/browse/COMPRESS-230 > Project: Commons Compress > Issue Type: Bug > Components: Archivers >Affects Versions: 1.5 > Environment: Ubuntu 12.04 > java version "1.7.0_21" > OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1) > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) >Reporter: Ken Keefe > Attachments: DetExpExample_mob23.tar > > > The TAR archiver is not reading existing tar files correctly. It doesn't > happen with every tar, just some of my tar files. I'll attach an example tar > file. The first file it reads is not the root directory, but another file in > the tar with "._" appended to the front of the file name for some reason. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (COMPRESS-230) Tar archive is not being read correctly
[ https://issues.apache.org/jira/browse/COMPRESS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675563#comment-13675563 ] Ken Keefe commented on COMPRESS-230: I don't see how to attach a file to this issue, so here is a link to the tar example: https://dl.dropboxusercontent.com/u/6990364/DetExpExample_mob23.tar Thanks! > Tar archive is not being read correctly > --- > > Key: COMPRESS-230 > URL: https://issues.apache.org/jira/browse/COMPRESS-230 > Project: Commons Compress > Issue Type: Bug > Components: Archivers >Affects Versions: 1.5 > Environment: Ubuntu 12.04 > java version "1.7.0_21" > OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1) > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode) >Reporter: Ken Keefe > > The TAR archiver is not reading existing tar files correctly. It doesn't > happen with every tar, just some of my tar files. I'll attach an example tar > file. The first file it reads is not the root directory, but another file in > the tar with "._" appended to the front of the file name for some reason. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira