ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (RANGER-775) Annotate classes used in REST API with ignoreUnknown=true for version compatibility
Date Wed, 09 Dec 2015 07:55:11 GMT

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

Madhan Neethiraj edited comment on RANGER-775 at 12/9/15 7:54 AM:
------------------------------------------------------------------

Patch for master/ranger-0.5 branches attached. Review is available at the review site here:
https://reviews.apache.org/r/41121/


was (Author: madhan.neethiraj):
Patch for master/ranger-0.5 branches attached.

> Annotate classes used in REST API with ignoreUnknown=true for version compatibility
> -----------------------------------------------------------------------------------
>
>                 Key: RANGER-775
>                 URL: https://issues.apache.org/jira/browse/RANGER-775
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 0.5.0
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>             Fix For: 0.6.0
>
>         Attachments: 0001-RANGER-775-ignoreUnknown-true-annotation-added-to-cl.patch
>
>
> Classes used in Ranger REST API must be annotated to ignore unknown attributes that might
be found in the response from the server - with @JsonIgnoreProperties(ignoreUnknown=true).
If not, the older version of REST clients might fail to process the response from newer version
of Ranger Admin - like HDP-2.3.* plugins fail while reading the policies downloaded from Erie
TP version of Ranger Admin.
> To avoid this issue, ensure that all classes, including the inner classes, are annotated
with @JsonIgnoreProperties(ignoreUnknown=true). Following inner classes currently miss this
annotation:
> RangerServiceDef.RangerEnumDef
> RangerServiceDef.RangerEnumElementDef
> RangerServiceDef.RangerServiceConfigDef
> RangerServiceDef.RangerResourceDef
> RangerServiceDef.RangerAccessTypeDef
> RangerServiceDef.RangerPolicyConditionDef
> RangerServiceDef.RangerContextEnricherDef
> RangerPolicy.RangerPolicyResource
> RangerPolicy.RangerPolicyItem
> RangerPolicy.RangerPolicyItemAccess
> RangerPolicy.RangerPolicyItemCondition



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message