Commons Compress
  1. Commons Compress
  2. COMPRESS-272

CompressorStreamFactory fails to autodetect files using Unix compress (.Z files)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.8.1
    • Component/s: Compressors
    • Labels:
      None

      Description

      I use the factory classes quite extensively to guess the correct implementation of a file that needs to be unpacked. The current doc does list that for lzma and 7zip files, the auto detect will not work. I have worked around this by looking at the file extension, and hope that its correct.
      For .Z files, I can only uncompress the file if I explicitly tell the factory that its using .Z compression, the auto detect never works. I'm using 1.7, but I dont think its fixed in 1.8 either (after looking at the bug fix list).

      Either its a bug in the doc, or in the auto detect of the compressor factory.

        Issue Links

          Activity

          Hide
          Stefan Bodewig added a comment -

          For 1.7 and 1.8 this is a documentation bug that I intend to rectify soon, for 1.9 we'll implement auto-detection.

          Show
          Stefan Bodewig added a comment - For 1.7 and 1.8 this is a documentation bug that I intend to rectify soon, for 1.9 we'll implement auto-detection.
          Hide
          Stefan Bodewig added a comment -

          svn trunk now auto-detects .Z and the site is updated to document .Z could not be detected prior to 1.9.

          Show
          Stefan Bodewig added a comment - svn trunk now auto-detects .Z and the site is updated to document .Z could not be detected prior to 1.9.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paul Blizniak
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development