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

ASF subversion and git services commented on GEODE-4755:
--------------------------------------------------------

Commit d62173a1b8be41dbe22a79ce4fe9faa6cea30565 in geode's branch 
refs/heads/develop from [~jens.deppe]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=d62173a ]

GEODE-4755: Use a more portable File permission API (#1573)

- This lets jar deployment work on Windows
- Unify creation of temporary staging directory

> Jar deploy fails on Windows
> ---------------------------
>
>                 Key: GEODE-4755
>                 URL: https://issues.apache.org/jira/browse/GEODE-4755
>             Project: Geode
>          Issue Type: Bug
>          Components: gfsh
>            Reporter: Jens Deppe
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Fails with this exception:
> {noformat}
> java.lang.UnsupportedOperationException: 'posix:permissions' not supported as 
> initial attribute
>        at 
> sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
>        at 
> sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:492)
>        at java.nio.file.Files.createDirectory(Files.java:674)
>        at java.nio.file.TempFileHelper.create(TempFileHelper.java:136)
>        at 
> java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173)
>        at java.nio.file.Files.createTempDirectory(Files.java:991)
>        at 
> org.apache.geode.management.internal.beans.FileUploader.uploadFile(FileUploader.java:77)
> {noformat}
> Potential classes affected:
> {noformat}
> org.apache.geode.distributed.internal.ClusterConfigurationService
> org.apache.geode.internal.cache.ClusterConfigurationLoader
> org.apache.geode.management.internal.beans.FileUploader
> org.apache.geode.management.internal.cli.functions.DeployFunction
> org.apache.geode.management.internal.web.controllers.AbstractCommandsController
> {noformat}
> Posixness can be checked with 
> {{FileSystems.getDefault().supportedFileAttributeViews().contains(“posix”);}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to