[
https://issues.apache.org/jira/browse/KARAF-6124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16755614#comment-16755614
]
ASF GitHub Bot commented on KARAF-6124:
---------------------------------------
diamondq commented on pull request #744: [KARAF-6124] Handle Windows
permissions when POSIX not supported
URL: https://github.com/apache/karaf/pull/744
Handle the UnsupportedOperationException that is thrown when attempting to
use the Files.getPosixFilePermissions() under Windows (as POSIX is not
supported) by using the File.setExecutable() instead in that scenario.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Instance Creation on Windows fails due to unsupported operation
> ---------------------------------------------------------------
>
> Key: KARAF-6124
> URL: https://issues.apache.org/jira/browse/KARAF-6124
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.2
> Reporter: Mike Mansell
> Priority: Major
> Labels: windows
> Fix For: 4.2.3
>
>
> A recent change to use the java.nio PosixFilePermissions to set the
> executable bits on the bin/karaf... files fails under Windows because
> PosixFilePermissions is not supported.
> A simple try/catch to use the File.setExecutable in the failure scenario
> works around the problem.
> I'll issue a quick PR for this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)