You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/09/26 11:02:00 UTC

[jira] [Resolved] (RANGER-1803) Json may be analysis a null value at tests[] for test_resourcematcher_default.json

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

Colm O hEigeartaigh resolved RANGER-1803.
-----------------------------------------
    Resolution: Fixed

> Json may be analysis a null value at tests[] for test_resourcematcher_default.json
> ----------------------------------------------------------------------------------
>
>                 Key: RANGER-1803
>                 URL: https://issues.apache.org/jira/browse/RANGER-1803
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: WangYuan
>            Assignee: WangYuan
>            Priority: Minor
>             Fix For: 1.0.0
>
>         Attachments: 0001-RANGER-1803-Json-may-be-analysis-a-null-value-at-tes.patch
>
>
> For test_resourcematcher_default.json, there is one more comma at last line.
> I think the comma in end line should be deleled,otherwise may be analysis a null value.
> For example:
> {code}
> "tests":[
>       	{ "name":"all-lower","input":"simple", "result":true},
>         ... ...
>         ... ...
>       	{ "name":"invalid-mixed-case-wild","input":"OtHeR-SiMpLe", "result":false},
>        ###{ "name":"invalid-mixed-case-wild","input":"OtHeR-SiMpLe", "result":false}
>       ]
> {code}
> {code}
> "tests":[
>       	{ "name":"all-lower","input":"simple", "result":true},
>         ... ...
>         ... ...
>       	{ "name":"invalid-mixed-case","input":"oThEr-StRiNg", "result":false},
>         ###{ "name":"invalid-mixed-case","input":"oThEr-StRiNg", "result":false}
>       ]
> {code}



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