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

Expander does not support archives with archive entries beginning with ./

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.21
    • 1.22
    • Archivers
    • None

    Description

      Suppose I create a tar file from a directory like so:

       

      tar -cf foo.tar ./foo

      When I try to extract the tar entries using the Expander class, that throws a java.io.IOException: Expanding ./ would create file outside of ...

      When I create the tar file without the leading ./, then Expander doesn't complain.

       

      Attachments

        1. test.tar.gz
          0.2 kB
          Matt Sicker

        Activity

          People

            peterlee Peter Lee
            mattsicker Matt Sicker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: