Skip to content

ArchiveUtils doesn't work on Windows #671

@ThomasVitale

Description

@ThomasVitale

Description of the bug

The operations implemented in ArchiveUtils assume the target system support POSIX file permissions, but that's not true on Windows machines, leading to errors when trying to set POSIX permissions (e.g. https://github.com/oras-project/oras-java/blob/main/src/main/java/land/oras/utils/ArchiveUtils.java#L429).

In order to make it work on Windows, I guess that at least a check should be added to guard the POSIX-related operations with something like:

FileSystems.getDefault().supportedFileAttributeViews().contains("posix")

I'm available to work on a PR, if this is something you'd like to support in ORAS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions