ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peng.jianhua (JIRA)" <j...@apache.org>
Subject [jira] [Created] (RANGER-1914) Modify crypt_algo_array.length to avoid java.lang.ArrayIndexOutOfBoundsException in PasswordUtils.class
Date Mon, 04 Dec 2017 08:17:01 GMT
peng.jianhua created RANGER-1914:
------------------------------------

             Summary: Modify crypt_algo_array.length to avoid java.lang.ArrayIndexOutOfBoundsException
in PasswordUtils.class
                 Key: RANGER-1914
                 URL: https://issues.apache.org/jira/browse/RANGER-1914
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
    Affects Versions: master
            Reporter: peng.jianhua
            Assignee: peng.jianhua
            Priority: Minor
             Fix For: master


Modify crypt_algo_array.length to avoid java.lang.ArrayIndexOutOfBoundsException in PasswordUtils.class
if (crypt_algo_array != null && crypt_algo_array.length > 1)
 when crypt_algo_array.length<5   password = crypt_algo_array[4]; will case  password =
crypt_algo_array[4];
 Change from "if (crypt_algo_array != null && crypt_algo_array.length > 1)"  to"if
(crypt_algo_array != null && crypt_algo_array.length > 4)"



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message