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

Policy create/update/delete fail to update service.policyVersion field

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: admin
    • Labels:
      None

      Description

      Policy create/update/delete operations return error even though the changes are saved in policy store. Looking at ranger-admin logs, the failure is in updating the policyVersion field of the service object.

      javax.ws.rs.WebApplicationException
      at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:55)
      at org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:279)
      at org.apache.ranger.biz.ServiceDBStore.validateRequiredConfigParams(ServiceDBStore.java:1623)
      at org.apache.ranger.biz.ServiceDBStore.updateService(ServiceDBStore.java:1055)
      at org.apache.ranger.biz.ServiceDBStore.handlePolicyUpdate(ServiceDBStore.java:1652)
      at org.apache.ranger.biz.ServiceDBStore.updatePolicy(ServiceDBStore.java:1326)
      at org.apache.ranger.rest.ServiceREST.updatePolicy(ServiceREST.java:905)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: