[ 
https://issues.apache.org/jira/browse/RANGER-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16263650#comment-16263650
 ] 

WangYuan commented on RANGER-1878:
----------------------------------

[~peng.jianhua]
Please see if it need to modify.

> The exception infomation print error for RangerPolicyServiceBase.java
> ---------------------------------------------------------------------
>
>                 Key: RANGER-1878
>                 URL: https://issues.apache.org/jira/browse/RANGER-1878
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin, Ranger
>    Affects Versions: master
>            Reporter: WangYuan
>            Assignee: WangYuan
>            Priority: Minor
>         Attachments: 
> 0001-RANGER-1878-The-exception-infomation-print-error-for.patch
>
>
> The exception infomation print error for RangerPolicyServiceBase.javaļ¼š
> {code:title=RangerPolicyServiceBase.java|borderStyle=solid}
> @Override
>       protected T mapViewToEntityBean(V vObj, T xObj, int OPERATION_CONTEXT) {
>               ... ..
>               XXService xService = 
> daoMgr.getXXService().findByName(vObj.getService());
>               if (xService == null) {
>                       throw restErrorUtil.createRESTException("No 
> corresponding service found for policyName: " + vObj.getName()
>                                       + "Service Not Found : " + 
> vObj.getName(), MessageEnums.INVALID_INPUT_DATA);
>                ... ...
>                //should be:    "Service Not Found : " + vObj.getService(), 
>               }
> {code}



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

Reply via email to