-
Bug
-
Resolution: Done
-
Medium
-
None
-
None
-
Policy El Alto 0 -6/23/19
The PAP simple deploy/undeploy API should support integer policy versions, but fails:
-
- cannot delete with version 2 – HTTP 404.*
bash-4.4$ curl --silent -k --user 'healthcheck:zb!XztG34' -X DELETE "https://policy-pap:6969/policy/pap/v1/pdps/policies/*OPERATIONAL_vLoadBalancerMS_v3_0_vLoadBalancerMS0_k8s-tca-clamp-policy-05162019/versions/2*" -H "Accept: application/json" -H "Content-Type: application/json"
{"errorDetails":"cannot find policy: OPERATIONAL_vLoadBalancerMS_v3_0_vLoadBalancerMS0_k8s-tca-clamp-policy-05162019 2"}-
- does delete with version 2.0.0 – HTTP 200*
bash-4.4$ curl --silent -k --user 'healthcheck:zb!XztG34' -X DELETE "https://policy-pap:6969/policy/pap/v1/pdps/policies/*OPERATIONAL_vLoadBalancerMS_v3_0_vLoadBalancerMS0_k8s-tca-clamp-policy-05162019/versions/2.0.0*" -H "Accept: application/json" -H "Content-Type: application/json"
{}
- is duplicated by
-
POLICY-1807 Latest version is always returned when using the endpoint to retrieve all versions of a particular policy
- Closed
- relates to
-
POLICY-1800 API|PAP components use different version formats
- Closed