[JBoss JIRA] (WFLY-4270) IllegalStateException: Shutdown in progress
by bene.net (JIRA)
[ https://issues.jboss.org/browse/WFLY-4270?page=com.atlassian.jira.plugin.... ]
bene.net updated WFLY-4270:
---------------------------
Description:
When starting Wildfly on Windows (JDK 1.7) and triggering a shutdown by pressing CTRL+C, I get the following exception.
I think the exception only occurs if there was no service request between startup and shutdown.
{noformat}
ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
{noformat}
was:
{noformat}
ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
{noformat}
> IllegalStateException: Shutdown in progress
> -------------------------------------------
>
> Key: WFLY-4270
> URL: https://issues.jboss.org/browse/WFLY-4270
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 8.2.0.Final
> Reporter: bene.net
> Assignee: Jason Greene
>
> When starting Wildfly on Windows (JDK 1.7) and triggering a shutdown by pressing CTRL+C, I get the following exception.
> I think the exception only occurs if there was no service request between startup and shutdown.
> {noformat}
> ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (JBLOGGING-112) JBoss Logging doesn't recognize log4j implementation
by Richard Achmatowicz (JIRA)
[ https://issues.jboss.org/browse/JBLOGGING-112?page=com.atlassian.jira.plu... ]
Richard Achmatowicz updated JBLOGGING-112:
------------------------------------------
Fix Version/s: 3.3.0.Alpha1
Affects Version/s: 3.2.0.Final
> JBoss Logging doesn't recognize log4j implementation
> ----------------------------------------------------
>
> Key: JBLOGGING-112
> URL: https://issues.jboss.org/browse/JBLOGGING-112
> Project: JBoss Logging
> Issue Type: Bug
> Affects Versions: 3.2.0.Final, 3.3.0.Alpha1
> Reporter: Richard Achmatowicz
> Assignee: James Perkins
> Fix For: 3.3.0.Alpha1
>
>
> There seems to be a typo in org.jboss.logging.LoggingProviders in the method tryLog4j(): the logging provider implementation used is Log4j2LoggerProvider, whereas it should be Log4jLoggerProvider.
> The net effect is that if I have log4j jars on the classpath and include a log4j configuration, the configuration gets parsed but log4j is not used as the logging provider; instead, JDK logging provider is used.
>
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (WFLY-4270) IllegalStateException: Shutdown in progress
by bene.net (JIRA)
[ https://issues.jboss.org/browse/WFLY-4270?page=com.atlassian.jira.plugin.... ]
bene.net updated WFLY-4270:
---------------------------
Description:
{noformat}
ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
{noformat}
was:
{noformat}
ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
{/noformat}
> IllegalStateException: Shutdown in progress
> -------------------------------------------
>
> Key: WFLY-4270
> URL: https://issues.jboss.org/browse/WFLY-4270
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 8.2.0.Final
> Reporter: bene.net
> Assignee: Jason Greene
>
> {noformat}
> ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (WFLY-4270) IllegalStateException: Shutdown in progress
by bene.net (JIRA)
[ https://issues.jboss.org/browse/WFLY-4270?page=com.atlassian.jira.plugin.... ]
bene.net updated WFLY-4270:
---------------------------
Description:
{noformat}
ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
{/noformat}
> IllegalStateException: Shutdown in progress
> -------------------------------------------
>
> Key: WFLY-4270
> URL: https://issues.jboss.org/browse/WFLY-4270
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 8.2.0.Final
> Reporter: bene.net
> Assignee: Jason Greene
>
> {noformat}
> ERROR; 2015-01-20 13:29:56,601; [AWT-Windows ]; Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown in progress
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,603; [AWT-Windows ]; at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,604; [AWT-Windows ]; at java.lang.Runtime.addShutdownHook(Runtime.java:211)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,605; [AWT-Windows ]; at sun.awt.windows.WToolkit$3.run(WToolkit.java:281)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,606; [AWT-Windows ]; at java.security.AccessController.doPrivileged(Native Method)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,607; [AWT-Windows ]; at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:273)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,609; [AWT-Windows ]; at sun.awt.windows.WToolkit.run(WToolkit.java:299)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> ERROR; 2015-01-20 13:29:56,610; [AWT-Windows ]; at java.lang.Thread.run(Thread.java:745)
> ; [org.jboss.stdio.AbstractLoggingWriter.write(AbstractLoggingWriter.java:71)]; ;
> {/noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (WFLY-3974) Move 'Channel end notification received, closing channel' to DEBUG
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/WFLY-3974?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on WFLY-3974:
-----------------------------------------------
Ladislav Thon <lthon(a)redhat.com> changed the Status of [bug 1147506|https://bugzilla.redhat.com/show_bug.cgi?id=1147506] from ON_QA to VERIFIED
> Move 'Channel end notification received, closing channel' to DEBUG
> ------------------------------------------------------------------
>
> Key: WFLY-3974
> URL: https://issues.jboss.org/browse/WFLY-3974
> Project: WildFly
> Issue Type: Enhancement
> Components: Naming
> Affects Versions: 9.0.0.Alpha1
> Reporter: Brad Maxwell
> Assignee: Brad Maxwell
> Fix For: 9.0.0.Beta1
>
>
> When a remote jms queue is located the following is seen:
> 2014-09-25 16:48:29,327 INFO [org.jboss.as.naming] (Remoting "jeev6dev01_200" task-1) JBAS011806: Notification de fin de canal reçue, fermeture du canal Channel ID 0cb79bd5 (inbound) of Remoting connection 53a1933a to /10.23.132.245:57733
> This is due to org.jboss.as.naming.NamingLogger where the following is used:
> @LogMessage(level=Logger.Level.INFO)
> @Message(id=11806, value="Channel end notification received, closing channel %s")
> public abstract void closingChannelOnChannelEnd(Channel paramChannel);
> Changin this to
> @LogMessage(level=Logger.Level.DEBUG)
> Would ensure that an INFO log event is not seen every time a jms message is sent to the server.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (WFCORE-112) Long server shut-dow with unresponsive client with opened JNDI Context
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/WFCORE-112?page=com.atlassian.jira.plugin... ]
RH Bugzilla Integration commented on WFCORE-112:
------------------------------------------------
Ladislav Thon <lthon(a)redhat.com> changed the Status of [bug 1139197|https://bugzilla.redhat.com/show_bug.cgi?id=1139197] from ON_QA to VERIFIED
> Long server shut-dow with unresponsive client with opened JNDI Context
> ----------------------------------------------------------------------
>
> Key: WFCORE-112
> URL: https://issues.jboss.org/browse/WFCORE-112
> Project: WildFly Core
> Issue Type: Bug
> Reporter: Miroslav Novak
> Assignee: David Lloyd
> Labels: remoting
> Attachments: JNDIContext.java, testcase.zip
>
>
> Description of problem:
> If client with opened JNDI context is disconnected from network, then clean shutdown (ctrl-c) of server takes 15 minutes.
> This scenario takes place, when network connections is lost between JMS clients with JNDI context and server.
> Version-Release number of selected component (if applicable):
> jboss-remoting-3.3.3.Final-redhat-1.jar
> How reproducible:
> always
> Steps to Reproduce:
> 1. Start EAP 6.3.1.CP.CR1 on first machine
> 2. Start client which creates JNDI context on second machine (use attached JNDIContext.java)
> 3. Disconnect network between client and server
> 4. Try to cleanly shutdown EAP 6.3.1.CP.CR1 server (by ctrl-c)
> Actual results:
> It takes 15 minutes for server to shutdown.
> Expected results:
> Server should shutdown almost immediately.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (DROOLS-693) UrlResource does not handle Basic Authentication correctly
by Michael Anstis (JIRA)
[ https://issues.jboss.org/browse/DROOLS-693?page=com.atlassian.jira.plugin... ]
Michael Anstis commented on DROOLS-693:
---------------------------------------
See https://github.com/droolsjbpm/drools/pull/403
> UrlResource does not handle Basic Authentication correctly
> ----------------------------------------------------------
>
> Key: DROOLS-693
> URL: https://issues.jboss.org/browse/DROOLS-693
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.2.0.CR4
> Reporter: Michael Anstis
> Assignee: Mark Proctor
> Fix For: 6.2.0.Final
>
>
> See the following forum posts:
> [drools-usage] Loading Kie jar via HTTP causing HTTP 500 Error
> [drools-usage] integrate external project jar (created by WB) into our web application
> These both do something similar to this:
> {code}
> KieServices ks = KieServices.Factory.get();
> KieRepository kr = ks.getRepository();
> UrlResource urlResource = (UrlResource) ks.getResources().newUrlResource("http://ip:9080/kie-drools-wb-distribution/maven2/com/ost/myproj/1.0/mypro...");
> urlResource.setUsername("username");
> urlResource.setPassword("password");
> urlResource.setBasicAuthentication("enabled");
> InputStream is = null;
> try {
> is = urlResource.getInputStream();
> KieModule kModule = kr.addKieModule( ks.getResources().newInputStreamResource(is) );
> ...
> {code}
> UrlResources's grabStream() and grabLastMod() methods do not Base64 encode the UID:PWD in accordance with HTTP Specification http://tools.ietf.org/html/rfc2617#page-5.
> I'd be tempted to further improve UrlResource to only append Basic Authentication information *if* Basic Authentication has been enabled on the UrlResource instance.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months
[JBoss JIRA] (DROOLS-693) UrlResource does not handle Basic Authentication correctly
by Michael Anstis (JIRA)
Michael Anstis created DROOLS-693:
-------------------------------------
Summary: UrlResource does not handle Basic Authentication correctly
Key: DROOLS-693
URL: https://issues.jboss.org/browse/DROOLS-693
Project: Drools
Issue Type: Bug
Affects Versions: 6.2.0.CR4
Reporter: Michael Anstis
Assignee: Mark Proctor
Fix For: 6.2.0.Final
See the following forum posts:
[drools-usage] Loading Kie jar via HTTP causing HTTP 500 Error
[drools-usage] integrate external project jar (created by WB) into our web application
These both do something similar to this:
{code}
KieServices ks = KieServices.Factory.get();
KieRepository kr = ks.getRepository();
UrlResource urlResource = (UrlResource) ks.getResources().newUrlResource("http://ip:9080/kie-drools-wb-distribution/maven2/com/ost/myproj/1.0/mypro...");
urlResource.setUsername("username");
urlResource.setPassword("password");
urlResource.setBasicAuthentication("enabled");
InputStream is = null;
try {
is = urlResource.getInputStream();
KieModule kModule = kr.addKieModule( ks.getResources().newInputStreamResource(is) );
...
{code}
UrlResources's grabStream() and grabLastMod() methods do not Base64 encode the UID:PWD in accordance with HTTP Specification http://tools.ietf.org/html/rfc2617#page-5.
I'd be tempted to further improve UrlResource to only append Basic Authentication information *if* Basic Authentication has been enabled on the UrlResource instance.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
11 years, 3 months