Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect template for sudo modifyPolicy piggybackCommand body #1910

Open
desislava-marinova opened this issue Mar 7, 2024 · 2 comments
Open
Labels

Comments

@desislava-marinova
Copy link
Contributor

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": {}
    }
  }
}
@thjaeckle thjaeckle added the bug label Mar 7, 2024
@thfries
Copy link
Contributor

thfries commented Mar 14, 2024

Hi @desislava-marinova, where must this be corrected? In the UI?

@desislava-marinova
Copy link
Contributor Author

Hi @thfries , it should be corrected in the piggyback commands template.
policy-sudo-modify-template-reduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants