Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-775

Annotate classes used in REST API with ignoreUnknown=true for version compatibility

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5.0
    • 0.6.0
    • plugins
    • None

    Description

      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

      Attachments

        Activity

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: