You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Alex (Jira)" <ji...@apache.org> on 2024/10/16 10:56:00 UTC

[jira] [Updated] (ARTEMIS-5113) No catch in SCRAMPropertiesLoginModule.java

     [ https://issues.apache.org/jira/browse/ARTEMIS-5113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex updated ARTEMIS-5113:
--------------------------
    Description: 
The string "throw new IllegalArgumentException("minimum of " + MIN_ITERATIONS + "required!");" is located in the code without the catch block, in case of an error it will throw an IllegalArgumentException, which will be passed to the Java runtime environment (JVM) and will terminate the program with an exit code other than zero. To handle exceptions caused by objects, you can use the try-catch block in the function.

[https://github.com/apache/activemq-artemis/blob/4c6cded2e79cf10d2323de1b5fa7418b289ab034/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java#L209]

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
Author A.Rudyuk.

  was:
The string "throw new IllegalArgumentException("minimum of " + MIN_ITERATIONS + "required!");" is located in the code without the catch block, in case of an error it will throw an IllegalArgumentException, which will be passed to the Java runtime environment (JVM) and will terminate the program with an exit code other than zero. To handle exceptions caused by objects, you can use the try-catch block in the function.

https://github.com/apache/activemq-artemis/blob/4c6cded2e79cf10d2323de1b5fa7418b289ab034/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java#L209


> No catch in SCRAMPropertiesLoginModule.java
> -------------------------------------------
>
>                 Key: ARTEMIS-5113
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5113
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Alex
>            Priority: Major
>
> The string "throw new IllegalArgumentException("minimum of " + MIN_ITERATIONS + "required!");" is located in the code without the catch block, in case of an error it will throw an IllegalArgumentException, which will be passed to the Java runtime environment (JVM) and will terminate the program with an exit code other than zero. To handle exceptions caused by objects, you can use the try-catch block in the function.
> [https://github.com/apache/activemq-artemis/blob/4c6cded2e79cf10d2323de1b5fa7418b289ab034/artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/jaas/SCRAMPropertiesLoginModule.java#L209]
> Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
> Author A.Rudyuk.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact