[
https://issues.apache.org/jira/browse/ARTEMIS-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17575009#comment-17575009
]
Justin Bertram commented on ARTEMIS-3913:
-----------------------------------------
You're right.
{{org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager5#authenticate}}
can't throw an {{{}ActiveMQSecurityException{}}}. It should simply return
{{null}} and that in turn will trigger an {{ActiveMQSecurityException}}. This
will send a {{CONNACK}} with a reason code of {{134}} if it's an MQTT 5 client
or {{5}} otherwise.
> MQTTReasonCodes byte loss of precision,must int type
> ----------------------------------------------------
>
> Key: ARTEMIS-3913
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3913
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: gongping.zhu
> Priority: Major
> Attachments: image-2022-08-02-08-23-52-965.png,
> image-2022-08-02-08-24-39-288.png, image-2022-08-02-08-31-01-074.png,
> image-2022-08-02-08-42-24-117.png, image-2022-08-02-08-43-39-442.png,
> image-2022-08-02-08-45-11-459.png, image-2022-08-02-08-54-34-267.png
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)