ditto icon indicating copy to clipboard operation
ditto copied to clipboard

Incorrect template for sudo modifyPolicy piggybackCommand body

Open desislava-marinova opened this issue 11 months ago • 2 comments

The piggyback command for modifying a policy template is not correct. The policyId must be inside the policy section

{
  "targetActorSelection": "/system/sharding/policy",
  "headers": {
    "aggregate": false,
    "is-group-topic": false,
    "ditto-sudo": true
  },
  "piggybackCommand": {
    "type": "policies.commands:modifyPolicy",
    "policyId": "{{policy.id}}",
    "policy": {
      "entries": {}
    }
  }
}

must be

{
  "targetActorSelection": "/system/sharding/policy",
  "headers": {
    "aggregate": false,
    "is-group-topic": false,
    "ditto-sudo": true
  },
  "piggybackCommand": {
    "type": "policies.commands:modifyPolicy",
    "policy": {
     "policyId": "{{policy.id}}",
      "entries": {}
    }
  }
}

desislava-marinova avatar Mar 07 '24 12:03 desislava-marinova