[
https://issues.apache.org/jira/browse/KNOX-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296579#comment-14296579
]
J.Andreina edited comment on KNOX-493 at 1/29/15 8:50 AM:
----------------------------------------------------------
Details on the attached patch file :
1. Security Data directory path value is taken from a configuration
"gateway.security.dir" defined in gateway-site.xml, If configuration is not
set then default value ($Gateway_data_dir/security) will be taken
2.In order to assign value for $Gateway_data_dir , will check for the
following conditions and takes the value from:
{noformat}
(i) GATEWAY_DATA_HOME system property if it is set
(ii) else from GATEWAY_DATA_HOME Environmental variable
(iii) else if "gateway.data.dir" configuration is set in gateway-site.xml
(iv) else default value ($Gateway_Home_dir/data) will be taken
{noformat}
I have added few test cases for the same. Please review the patch.
was (Author: andreina):
Details on the attached patch file :
1. Security Data directory is read from a configuration, If configuration is
not set then default value ({Gateway_data_dir}/security) will be taken
2. {Gateway_data_dir} will check for the following conditions and takes the
value from:
(i) GATEWAY_DATA_HOME system property if it is set
(ii) else from GATEWAY_DATA_HOME Environmental variable
(iii) else if "gateway.data.dir" configuration is set in gateway-site.xml
(iv) else default value ({Gateway_Home_dir}/data) will be taken
I have a few test cases for the same. Please review the patch.
> Data and sub data directory should be made configurable.
> --------------------------------------------------------
>
> Key: KNOX-493
> URL: https://issues.apache.org/jira/browse/KNOX-493
> Project: Apache Knox
> Issue Type: Bug
> Reporter: J.Andreina
> Attachments: KNOX-493.1.patch
>
>
> Gateway Data directory contains information on deployments and security.
> Gateway Deployment directory is already made configurable as part of
> KNOX-485.
> Similar way Gateway Data directory and its sub data directory ( security )
> should be made configurable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)