Skip to content

Avoid POSIX permission changes on non-POSIX filesystems#658

Open
farouk-01 wants to merge 4 commits intopalantir:developfrom
farouk-01:fix/windows-posix-permissions
Open

Avoid POSIX permission changes on non-POSIX filesystems#658
farouk-01 wants to merge 4 commits intopalantir:developfrom
farouk-01:fix/windows-posix-permissions

Conversation

@farouk-01
Copy link
Copy Markdown

Before this PR

On non-POSIX filesystems (e.g., Windows/NTFS), calling Files.setPosixFilePermissions throws UnsupportedOperationException, which can crash workflows that attempt to set execute permissions.

After this PR

==COMMIT_MSG==
Avoid UnsupportedOperationException when setting POSIX permissions on non-POSIX filesystems
==COMMIT_MSG==

Guard POSIX permission updates behind a filesystem capability check. On non-POSIX
filesystems the operation is skipped and on POSIX filesystems behavior is unchanged.

Possible downsides?

None.

@palantirtech
Copy link
Copy Markdown
Member

Thanks for your interest in palantir/gradle-jdks, @farouk-01! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

@changelog-app
Copy link
Copy Markdown

changelog-app Bot commented Jan 18, 2026

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

Avoid UnsupportedOperationException when setting POSIX permissions on non-POSIX filesystems

Check the box to generate changelog(s)

  • Generate changelog entry

@farouk-01 farouk-01 force-pushed the fix/windows-posix-permissions branch from 4eb6418 to 47a2b90 Compare January 18, 2026 09:37
@farouk-01
Copy link
Copy Markdown
Author

changelog: fix

@farouk-01 farouk-01 force-pushed the fix/windows-posix-permissions branch from b41d93d to 988c4a6 Compare January 18, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants