[ 
https://issues.apache.org/jira/browse/KARAF-6124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16755684#comment-16755684
 ] 

ASF subversion and git services commented on KARAF-6124:
--------------------------------------------------------

Commit 7f762f27480450ba0e1e2da1abe74ba0117bf6f1 in karaf's branch 
refs/heads/master from Mike Mansell
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=7f762f2 ]

[KARAF-6124] Handle Windows permissions when POSIX not supported

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.


> 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
>            Assignee: Jean-Baptiste Onofré
>            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)

Reply via email to