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

Add support for ACLs

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.0
    • Archivers

    Description

      I'm wrapping up the dump archive reader and don't know how to present ACL information. In this case the ACL information is stored after the data so I can't simply add it to the archive-specific Entry class - it will only be available after the end of the data stream is reached.

      More generally this problem occurs with other extended attributes, e.g., SELinux labels. You can also have this problem with MacOS specific streams, e.g., the finder stream.

      One possibility is returning an ArchiveEntry for the extended attributes. It can have a isMetadata() method to indicate it's extended attributes. This has a huge downside though since legacy code would replace the file contents with the extended attributes so we would want an explicit acknowledgement that the code is prepared to handle it, e.g., by a constructor flag.

      Is there a better way to handle this?

      Attachments

        Activity

          People

            Unassigned Unassigned
            beargiles Bear Giles
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: