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

Long link support for TarArchiveOutputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6
    • Archivers
    • None

    Description

      TarArchiveOutputStream doesn't handle properly long link names, they are truncated silently in most cases.

      • In GNU mode a @LongLink entry should be created similarly to long names but with the 'K' type (GNU_LONGLINK) instead of 'L' (GNU_LONGNAME)
      • In POSIX mode a pax header with the linkpath keyword should be added. This is already implemented for links containing a non ASCII character.
      • In the default ERROR mode no exception is thrown and the link is truncated.

      The logic for adding a pax header on non ASCII characters should probably be reworked, as it seems possible to have pax headers mixed with GNU @LongLink entries. I'm not sure this is desirable.

      Attachments

        1. longlink.patch
          2 kB
          Emmanuel Bourg

        Activity

          People

            Unassigned Unassigned
            ebourg Emmanuel Bourg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: