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

ACL with this topic already exists #2965

Closed
shikingram opened this issue Dec 12, 2023 · 1 comment
Closed

ACL with this topic already exists #2965

shikingram opened this issue Dec 12, 2023 · 1 comment

Comments

@shikingram
Copy link

shikingram commented Dec 12, 2023

  • version
    mosquitto version 2.0.18
  • os
    ubuntu
  • question:
    the rolesadmin in dynamic-security.json
"roles":	[{
			"rolename":	"admin",
			"acls":	[{
					"acltype":	"publishClientSend",
					"topic":	"$CONTROL/dynamic-security/#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"publishClientReceive",
					"topic":	"$CONTROL/dynamic-security/#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"publishClientReceive",
					"topic":	"$SYS/#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"publishClientReceive",
					"topic":	"#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"subscribePattern",
					"topic":	"$CONTROL/dynamic-security/#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"subscribePattern",
					"topic":	"$SYS/#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"subscribePattern",
					"topic":	"#",
					"priority":	0,
					"allow":	true
				}, {
					"acltype":	"unsubscribePattern",
					"topic":	"#",
					"priority":	0,
					"allow":	true
				}]
		},

I try to add acl to the role admin, acltype =publishClientSend

{
	"commands":[
		{
			"command": "addRoleACL",
			"rolename": "admin",
			"acltype": "publishClientSend",
			"topic": "#",
			"priority": -1,
			"allow": true
		}
	]
}

but I got an error response.

{"responses":[{"command":"addRoleACL","error":"ACL with this topic already exists"}]}

this role only have acltype publishClientReceive whith topic "#", the response seems error

@shikingram
Copy link
Author

shikingram commented Dec 12, 2023

It has already succeeded.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant