[ 
https://issues.apache.org/jira/browse/RANGER-1323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Qiang Zhang updated RANGER-1323:
--------------------------------
    Request participants:   (was: )
             Description: 
The program can not get the correct version when we installed Ranger KMS based 
on the latest version. The code logical is as follows:
if [ -f ${PWD}/version ] 
then
        VERSION=`cat ${PWD}/version`
else
        VERSION="0.5.0"
fi
There are two logical errors in above code.
1. The version file does not exist. VERSION can only be equal to 0.5.0. 
2. VERSION=`cat ${PWD}/version` clause can only get version information from 
file with unapproved license. However, the ranger project does not support file 
of this format. 
We should add version file into kms install path. The current version should be 
written in the version file.

  was:
The program can not get the correct version when we installed Ranger KMS based 
on the latest version. The code logical is as follows:
if [ -f ${PWD}/version ] 
then
        VERSION=`cat ${PWD}/version`
else
        VERSION="0.5.0"
fi
There are two logical errors in above code.
1. The version file does not exist. VERSION can only be equal to 0.5.0. 
2. VERSION=`cat ${PWD}/version` clause can only get version information from 
file with unapproved license. However, the ranger project does not support file 
of this format. 
We should add version file into kms install path. The current version should be 
writed in the version file.


> The program can not get the correct version when we installed Ranger KMS 
> based on the latest version
> ----------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1323
>                 URL: https://issues.apache.org/jira/browse/RANGER-1323
>             Project: Ranger
>          Issue Type: Bug
>          Components: kms
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>            Priority: Minor
>              Labels: patch
>         Attachments: 
> 0001-RANGER-1323-An-incorrect-rollback-point-was-created-.patch
>
>
> The program can not get the correct version when we installed Ranger KMS 
> based on the latest version. The code logical is as follows:
> if [ -f ${PWD}/version ] 
> then
>       VERSION=`cat ${PWD}/version`
> else
>       VERSION="0.5.0"
> fi
> There are two logical errors in above code.
> 1. The version file does not exist. VERSION can only be equal to 0.5.0. 
> 2. VERSION=`cat ${PWD}/version` clause can only get version information from 
> file with unapproved license. However, the ranger project does not support 
> file of this format. 
> We should add version file into kms install path. The current version should 
> be written in the version file.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to