-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Intercepting Publish on server does not return the correct status code to the client #1965
Comments
You must change a few things in order to get it running:
|
I adjusted the unit test based on the guide above and it is now working
It might not be Mqtt standard but only sending NoMatchingSubscribers if you are authorized in the MqttClientSessionsManager class would be a cleaner solution for me. If you have retained messages on I think it is ok that you do not have any subscribers. eg |
That is a good idea. But would check for success instead. So that it will never return NoMatchingSubscribers only if it is basically a success and no error etc. |
I am trying to put an authorization functionality around publishing topics. The code below will stop the topic being published but the client gets a Success status instead of NotAuthorized
Is there anyway for the client to know the topic was not rejected by the server or is this a bug ?
Below is a test to show the issue
The text was updated successfully, but these errors were encountered: