ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Velmurugan Periasamy (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (RANGER-1946) if args.length=2 will case java.lang.ArrayIndexOutOfBoundsException in HdfsClient.class
Date Mon, 02 Jul 2018 20:22:00 GMT

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

Velmurugan Periasamy updated RANGER-1946:
-----------------------------------------
    Fix Version/s:     (was: master)

> if args.length=2 will case java.lang.ArrayIndexOutOfBoundsException in HdfsClient.class
> ---------------------------------------------------------------------------------------
>
>                 Key: RANGER-1946
>                 URL: https://issues.apache.org/jira/browse/RANGER-1946
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: master
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>            Priority: Minor
>         Attachments: 0001-RANGER-1946-if-args.length-2-will-case-java.lang.Arr.patch
>
>
> "if args.length=2 "   the following code 
> "String fileNameToMatch = (args.length == 2 ? null : args[2]);"
> will case java.lang.ArrayIndexOutOfBoundsException in HdfsClient.class
> Chang from  "if (args.length < 2)  "  to "if (args.length < 3) "



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

Mime
View raw message