Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-197

Tar file for Android backup cannot be read

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1
    • 1.5
    • Archivers

    Description

      Attached tar file was generated by some kind of backup tool on Android. Normal tar utilities seem to handle it fine, but Commons Compress doesn't.

      java.lang.IllegalArgumentException: Invalid byte 0 at offset 5 in '01750{NUL}{NUL}{NUL}' len=8
          at org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:99)
          at org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:788)
          at org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:308)
      

      Attachments

        1. android-backup.tar
          5 kB
          Trejkaz

        Activity

          People

            jukkaz Jukka Zitting
            trejkaz Trejkaz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: