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

Sumit Mohanty commented on SLIDER-252:
--------------------------------------

[~jmaron], I have made some changes to get around the issues but I am keeping 
this JIRA open in case more fixes are needed.

Changes for file permission:
{noformat}
 if(SystemUtils.IS_OS_WINDOWS) {
          setFilePermissionForWindows(Paths.get(secDirFile.toURI()));
          setFilePermissionForWindows(Paths.get(dbDir.toURI()));
          setFilePermissionForWindows(Paths.get(newCertsDir.toURI()));
        } else {
...        
{noformat}

For ca.conf file that always need path in posix format:
{noformat}
        
SecurityUtils.writeCaConfigFile(secDirFile.getAbsolutePath().replace('\\', 
'/'));
{noformat}

> openssl support needs to handle file path differences between windows and 
> linux
> -------------------------------------------------------------------------------
>
>                 Key: SLIDER-252
>                 URL: https://issues.apache.org/jira/browse/SLIDER-252
>             Project: Slider
>          Issue Type: Bug
>          Components: appmaster
>    Affects Versions: Slider 0.50
>            Reporter: Sumit Mohanty
>            Assignee: Jonathan Maron
>             Fix For: Slider 0.50
>
>
> After openssl is installed ...
> {noformat}
> java.io.FileNotFoundException: C:\tmp\work\security\keystore.p12 (The system 
> cannot find the file specified)
>       at java.io.FileInputStream.open(Native Method)
>       at java.io.FileInputStream.<init>(FileInputStream.java:146)
>       at 
> org.mortbay.resource.FileResource.getInputStream(FileResource.java:275)
>       at 
> org.mortbay.jetty.security.SslSelectChannelConnector.createSSLContext(SslSelectChannelConnector.java:624)
>       at 
> org.mortbay.jetty.security.SslSelectChannelConnector.doStart(SslSelectChannelConnector.java:598)
>       at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>       at org.mortbay.jetty.Server.doStart(Server.java:235)
>       at 
> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>       at 
> org.apache.slider.server.appmaster.web.rest.agent.AgentWebApp$Builder.start(AgentWebApp.java:102)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.startAgentWebApp(SliderAppMaster.java:760)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.createAndRunCluster(SliderAppMaster.java:605)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.runService(SliderAppMaster.java:421)
>       at 
> org.apache.slider.core.main.ServiceLauncher.launchService(ServiceLauncher.java:186)
>       at 
> org.apache.slider.core.main.ServiceLauncher.launchServiceRobustly(ServiceLauncher.java:474)
>       at 
> org.apache.slider.core.main.ServiceLauncher.launchServiceAndExit(ServiceLauncher.java:405)
>       at 
> org.apache.slider.core.main.ServiceLauncher.serviceMain(ServiceLauncher.java:629)
>       at 
> org.apache.slider.server.appmaster.SliderAppMaster.main(SliderAppMaster.java:1618)
> {noformat}
> File path differences need to be handled
> ca.conf file still needs value where path separator is "/"



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to