[JBoss JIRA] (ELY-1500) Coverity, Infinite Loop in FactoryCredentialSource
by Martin Choma (JIRA)
[ https://issues.jboss.org/browse/ELY-1500?page=com.atlassian.jira.plugin.s... ]
Martin Choma updated ELY-1500:
------------------------------
Description:
Effectivelly Elytron contains infinite recursion implemented.
{code:java|title=FactoryCredentialSource.java}
@Override
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException {
return getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec) != null ? SupportLevel.SUPPORTED : SupportLevel.UNSUPPORTED;
}
{code}
[1] https://scan7.coverity.com/reports.htm#v23632/p11778/fileInstanceId=46596...
was:
Effectivelly Elytron contains infinite recursion implemented.
{code:java|title=FactoryCredentialSource.java}
@Override
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException {
return getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec) != null ? SupportLevel.SUPPORTED : SupportLevel.UNSUPPORTED;
}
{code}
> Coverity, Infinite Loop in FactoryCredentialSource
> --------------------------------------------------
>
> Key: ELY-1500
> URL: https://issues.jboss.org/browse/ELY-1500
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Credentials
> Affects Versions: 1.2.0.Beta12
> Reporter: Martin Choma
> Priority: Critical
>
> Effectivelly Elytron contains infinite recursion implemented.
> {code:java|title=FactoryCredentialSource.java}
> @Override
> public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException {
> return getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec) != null ? SupportLevel.SUPPORTED : SupportLevel.UNSUPPORTED;
> }
> {code}
> [1] https://scan7.coverity.com/reports.htm#v23632/p11778/fileInstanceId=46596...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (ELY-1500) Coverity, Infinite Loop in FactoryCredentialSource
by Martin Choma (JIRA)
Martin Choma created ELY-1500:
---------------------------------
Summary: Coverity, Infinite Loop in FactoryCredentialSource
Key: ELY-1500
URL: https://issues.jboss.org/browse/ELY-1500
Project: WildFly Elytron
Issue Type: Bug
Components: Credentials
Affects Versions: 1.2.0.Beta12
Reporter: Martin Choma
Priority: Critical
Effectivelly Elytron contains infinite recursion implemented.
{code:java|title=FactoryCredentialSource.java}
@Override
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException {
return getCredentialAcquireSupport(credentialType, algorithmName, parameterSpec) != null ? SupportLevel.SUPPORTED : SupportLevel.UNSUPPORTED;
}
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (WFCORE-3547) ExceptionInInitializerError during create of CLI object on client app
by Marek Kopecký (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3547?page=com.atlassian.jira.plugi... ]
Marek Kopecký updated WFCORE-3547:
----------------------------------
Description:
ExceptionInInitializerError during create of CLI object on client app.
*Steps to reproduce:*
# create simple CLI client app, for example: {code:java}public class App {
public static void main(String[] args) throws Exception {
CLI cli = CLI.newInstance();
}
} {code}
# start this application
*Actual results:*
{noformat}
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197)
at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174)
at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352)
at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
at com.client.test.App.main(App.java:9)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45)
... 8 more
{noformat}
*Expected results:*
No errors
*Additional info:*
See attached application [^single-client.zip] :
{noformat}
# old client
mvn clean
mvn package -Dversion.client=3.0.10.Final
java -jar target/ClientApplication.jar # works correctly with old client
# new client
mvn clean
mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT
java -jar target/ClientApplication.jar # throws ExceptionInInitializerError
java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception
{noformat}
was:
ExceptionInInitializerError during create of CLI object on client app.
*Steps to reproduce:*
# create simple CLI client app, for example: {code:java}public class App {
public static void main(String[] args) throws Exception {
CLI cli = CLI.newInstance();
}
} {code}
# start this application
*Actual results:*
{noformat}
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197)
at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174)
at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352)
at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
at com.client.test.App.main(App.java:9)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45)
... 8 more
{noformat}
*Expected results:*
No errors
*Additional info:*
See attached application:
{noformat}
# old client
mvn clean
mvn package -Dversion.client=3.0.10.Final
java -jar target/ClientApplication.jar # works correctly with old client
# new client
mvn clean
mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT
java -jar target/ClientApplication.jar # throws ExceptionInInitializerError
java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception
{noformat}
> ExceptionInInitializerError during create of CLI object on client app
> ---------------------------------------------------------------------
>
> Key: WFCORE-3547
> URL: https://issues.jboss.org/browse/WFCORE-3547
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Reporter: Marek Kopecký
> Assignee: Jean-Francois Denise
> Attachments: single-client.zip
>
>
> ExceptionInInitializerError during create of CLI object on client app.
> *Steps to reproduce:*
> # create simple CLI client app, for example: {code:java}public class App {
> public static void main(String[] args) throws Exception {
> CLI cli = CLI.newInstance();
> }
> } {code}
> # start this application
> *Actual results:*
> {noformat}
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197)
> at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174)
> at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352)
> at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
> at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
> at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
> at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
> at com.client.test.App.main(App.java:9)
> Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
> at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
> at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45)
> ... 8 more
> {noformat}
> *Expected results:*
> No errors
> *Additional info:*
> See attached application [^single-client.zip] :
> {noformat}
> # old client
> mvn clean
> mvn package -Dversion.client=3.0.10.Final
> java -jar target/ClientApplication.jar # works correctly with old client
> # new client
> mvn clean
> mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT
> java -jar target/ClientApplication.jar # throws ExceptionInInitializerError
> java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (WFCORE-3547) ExceptionInInitializerError during create of CLI object on client app
by Marek Kopecký (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3547?page=com.atlassian.jira.plugi... ]
Marek Kopecký updated WFCORE-3547:
----------------------------------
Priority: Critical (was: Major)
> ExceptionInInitializerError during create of CLI object on client app
> ---------------------------------------------------------------------
>
> Key: WFCORE-3547
> URL: https://issues.jboss.org/browse/WFCORE-3547
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Reporter: Marek Kopecký
> Assignee: Jean-Francois Denise
> Priority: Critical
> Attachments: single-client.zip
>
>
> ExceptionInInitializerError during create of CLI object on client app.
> *Steps to reproduce:*
> # create simple CLI client app, for example: {code:java}public class App {
> public static void main(String[] args) throws Exception {
> CLI cli = CLI.newInstance();
> }
> } {code}
> # start this application
> *Actual results:*
> {noformat}
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197)
> at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174)
> at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352)
> at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
> at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
> at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
> at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
> at com.client.test.App.main(App.java:9)
> Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
> at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
> at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45)
> ... 8 more
> {noformat}
> *Expected results:*
> No errors
> *Additional info:*
> See attached application [^single-client.zip] :
> {noformat}
> # old client
> mvn clean
> mvn package -Dversion.client=3.0.10.Final
> java -jar target/ClientApplication.jar # works correctly with old client
> # new client
> mvn clean
> mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT
> java -jar target/ClientApplication.jar # throws ExceptionInInitializerError
> java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (WFCORE-3547) ExceptionInInitializerError during create of CLI object on client app
by Marek Kopecký (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3547?page=com.atlassian.jira.plugi... ]
Marek Kopecký updated WFCORE-3547:
----------------------------------
Attachment: single-client.zip
> ExceptionInInitializerError during create of CLI object on client app
> ---------------------------------------------------------------------
>
> Key: WFCORE-3547
> URL: https://issues.jboss.org/browse/WFCORE-3547
> Project: WildFly Core
> Issue Type: Bug
> Components: CLI
> Reporter: Marek Kopecký
> Assignee: Jean-Francois Denise
> Attachments: single-client.zip
>
>
> ExceptionInInitializerError during create of CLI object on client app.
> *Steps to reproduce:*
> # create simple CLI client app, for example: {code:java}public class App {
> public static void main(String[] args) throws Exception {
> CLI cli = CLI.newInstance();
> }
> } {code}
> # start this application
> *Actual results:*
> {noformat}
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197)
> at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174)
> at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352)
> at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
> at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
> at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
> at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
> at com.client.test.App.main(App.java:9)
> Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
> at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
> at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45)
> ... 8 more
> {noformat}
> *Expected results:*
> No errors
> *Additional info:*
> See attached application:
> {noformat}
> # old client
> mvn clean
> mvn package -Dversion.client=3.0.10.Final
> java -jar target/ClientApplication.jar # works correctly with old client
> # new client
> mvn clean
> mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT
> java -jar target/ClientApplication.jar # throws ExceptionInInitializerError
> java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months
[JBoss JIRA] (WFCORE-3547) ExceptionInInitializerError during create of CLI object on client app
by Marek Kopecký (JIRA)
Marek Kopecký created WFCORE-3547:
-------------------------------------
Summary: ExceptionInInitializerError during create of CLI object on client app
Key: WFCORE-3547
URL: https://issues.jboss.org/browse/WFCORE-3547
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Marek Kopecký
Assignee: Jean-Francois Denise
ExceptionInInitializerError during create of CLI object on client app.
*Steps to reproduce:*
# create simple CLI client app, for example: {code:java}public class App {
public static void main(String[] args) throws Exception {
CLI cli = CLI.newInstance();
}
} {code}
# start this application
*Actual results:*
{noformat}
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197)
at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174)
at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352)
at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44)
at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278)
at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53)
at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62)
at com.client.test.App.main(App.java:9)
Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager")
at org.jboss.logmanager.Logger.getLogger(Logger.java:57)
at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45)
... 8 more
{noformat}
*Expected results:*
No errors
*Additional info:*
See attached application:
{noformat}
# old client
mvn clean
mvn package -Dversion.client=3.0.10.Final
java -jar target/ClientApplication.jar # works correctly with old client
# new client
mvn clean
mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT
java -jar target/ClientApplication.jar # throws ExceptionInInitializerError
java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception
{noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 3 months