[JBoss JIRA] (WFLY-13529) (7.3.z) WFLY-13527 - Thousand of unauthorized requests in between balancer and backend if backend is running in a cluster
by Ilia Vassilev (Jira)
Ilia Vassilev created WFLY-13529:
------------------------------------
Summary: (7.3.z) WFLY-13527 - Thousand of unauthorized requests in between balancer and backend if backend is running in a cluster
Key: WFLY-13529
URL: https://issues.redhat.com/browse/WFLY-13529
Project: WildFly
Issue Type: Bug
Reporter: Ilia Vassilev
Assignee: Masafumi Miura
A standalone client application is calling EJBs on a backend server through an Undertow loadbalancer.
The client looks like this:
{code:java}
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, WildFlyInitialContextFactory.class.getName());
props.put(Context.PROVIDER_URL, "http://10.0.0.1:9080/wildfly-services");
props.put(Context.SECURITY_PRINCIPAL, "some-user");
props.put(Context.SECURITY_CREDENTIALS, "some-password");
InitialContext ctx = new InitialContext(props);
String name="ejb:/playground-jar/JBossManIntClientBean!org.jboss.playground.JBossManIntClient";
JBossManIntClient bean = (JBossManIntClient) ctx.lookup(name);
{code}
A client invoking the same EJB twice result in thousands of requests from the balancer to the backend servers, e. g.:
* 13468 times:
{code}
INFO [io.undertow.accesslog] (default I/O-3) 10.0.0.1 - - [24/Sep/2019:12:03:03 +0200] "POST /wildfly-services/ejb/v1/invoke/-/playground-jar/-/JBossManIntClientBean/-/org.jboss.playground.JBossManIntClient/getHost HTTP/2.0" 401 77 "-" "-" Cookie: "-" Set-Cookie: "-" SessionID: - Thread: "default I/O-3" TimeTaken: 5063
{code}
* 2 times:
{code}
INFO [io.undertow.accesslog] (default I/O-3) 10.0.0.1 - - [24/Sep/2019:12:06:53 +0200] "POST /wildfly-services/ejb/v1/invoke/-/playground-jar/-/JBossManIntClientBean/-/org.jboss.playground.JBossManIntClient/getHost HTTP/2.0" 200 155 "-" "-" Cookie: "-" Set-Cookie: "-" SessionID: - Thread: "default I/O-3" TimeTaken: 614
{code}
*Note:* This behavior only occurs if there's more than a single backend server running in a cluster...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-11999) Wildfly creates to many instances of all web service classes
by Parul Sharma (Jira)
[ https://issues.redhat.com/browse/WFLY-11999?page=com.atlassian.jira.plugi... ]
Parul Sharma commented on WFLY-11999:
-------------------------------------
[~jim.ma] [~s.frings74] Can you please let me know what is the purpose of using @ApplicationScoped and @webservice both?
> Wildfly creates to many instances of all web service classes
> ------------------------------------------------------------
>
> Key: WFLY-11999
> URL: https://issues.redhat.com/browse/WFLY-11999
> Project: WildFly
> Issue Type: Bug
> Components: Web Services
> Affects Versions: 8.0.0.Final, 16.0.0.Final, 19.0.0.Final
> Environment: Ubuntu 18.10 64bit, Open JDK 8 or Open JDK 11
> Reporter: Stefan Frings
> Assignee: Parul Sharma
> Priority: Minor
> Attachments: Test-1.0-SNAPSHOT.war, Test.zip, standalone.xml
>
>
> 1) My @Webservice classes are all constructed multiple times (3x - 4x) but I expected only one instance.
> 2) Only the second instance receives a call to the observer method for initialization. I expect that this method is called in each instance.
> The issue can be reproduced with the attached minimum project on Wildfly 8 with JDK 8 as well as Wildfly 16 with JDK 11.
> Complete source code of the whole application:
> {code}
> package com.mvneco.test;
> import javax.enterprise.context.ApplicationScoped;
> import javax.enterprise.context.Initialized;
> import javax.enterprise.event.Observes;
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> @ApplicationScoped
> @WebService
> public class SoapService
> {
> private Log log = LogFactory.getLog(SoapService.class);
> public SoapService()
> {
> log.debug("Init SoapService 1");
> }
> @WebMethod(exclude = true)
> public void init(@Observes @Initialized(ApplicationScoped.class) Object init)
> {
> log.debug("Init SoapService 2");
> }
> @WebMethod
> public String test(String payload)
> {
> log.debug("Start test(). payload="+payload);
> return "OK";
> }
> }
> {code}
> Extract from Log messages that show the issue (the complete log is in the attached ZIP):
> {code}
> 2019-04-17 13:12:21,399 DEBUG [com.mvneco.test.SoapService] (MSC service thread 1-2) Init SoapService 1
> 2019-04-17 13:12:23,068 DEBUG [com.mvneco.test.SoapService] (ServerService Thread Pool -- 74) Init SoapService 1
> 2019-04-17 13:12:23,070 DEBUG [com.mvneco.test.SoapService] (ServerService Thread Pool -- 74) Init SoapService 2
> 2019-04-17 13:12:23,475 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 16.0.0.Final (WildFly Core 8.0.0.Final) started in 10514ms - Started 510 of 699 services (337 services are lazy, passive or on-demand)
> 2019-04-17 13:12:28,920 INFO [org.apache.cxf.services.SoapService.REQ_IN] (default task-1) REQ_IN
> Address: http://localhost:8080/Test-1.0-SNAPSHOT/SoapService
> ...
> 2019-04-17 13:12:28,932 DEBUG [com.mvneco.test.SoapService] (default task-1) Init SoapService 1
> 2019-04-17 13:12:28,937 DEBUG [com.mvneco.test.SoapService] (default task-1) Init SoapService 1
> 2019-04-17 13:12:28,937 DEBUG [com.mvneco.test.SoapService] (default task-1) Start test(). payload=?
> 2019-04-17 13:12:28,969 INFO [org.apache.cxf.services.SoapService.RESP_OUT] (default task-1) RESP_OUT
> Content-Type: text/xml
> ...
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5333) Allow to customize rule names in guided decision table editor
by Jozef Marko (Jira)
[ https://issues.redhat.com/browse/DROOLS-5333?page=com.atlassian.jira.plug... ]
Jozef Marko commented on DROOLS-5333:
-------------------------------------
The manual review round 01 didn't pass. See the video [^rulename-column.webm] . I am not able to display the column and store the setting for its displaying.
> Allow to customize rule names in guided decision table editor
> -------------------------------------------------------------
>
> Key: DROOLS-5333
> URL: https://issues.redhat.com/browse/DROOLS-5333
> Project: Drools
> Issue Type: Feature Request
> Reporter: Toni Rikkola
> Assignee: Toni Rikkola
> Priority: Major
> Labels: drools-tools
> Attachments: rulename-column.webm
>
>
> Add a column into the GDST where you can set the rule name for the rule that is generated from that row.
> h3. Check to be done during manual review
> - Guided Rule Templates are not affected
> - Guided Rules are not affected
> - bxms-qe-tests internal are updated
> - Firefox
> - Chrome
> - Create new table, Put value, Save and reopen, Remove value, Save and reopen
> - Open existing table (Pricing loans)
> - Create scesim file to check execution is not affetced
> - GDST to XLS conversion
> - Help in the changed wizard page
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5333) Allow to customize rule names in guided decision table editor
by Jozef Marko (Jira)
[ https://issues.redhat.com/browse/DROOLS-5333?page=com.atlassian.jira.plug... ]
Jozef Marko updated DROOLS-5333:
--------------------------------
Attachment: rulename-column.webm
> Allow to customize rule names in guided decision table editor
> -------------------------------------------------------------
>
> Key: DROOLS-5333
> URL: https://issues.redhat.com/browse/DROOLS-5333
> Project: Drools
> Issue Type: Feature Request
> Reporter: Toni Rikkola
> Assignee: Toni Rikkola
> Priority: Major
> Labels: drools-tools
> Attachments: rulename-column.webm
>
>
> Add a column into the GDST where you can set the rule name for the rule that is generated from that row.
> h3. Check to be done during manual review
> - Guided Rule Templates are not affected
> - Guided Rules are not affected
> - bxms-qe-tests internal are updated
> - Firefox
> - Chrome
> - Create new table, Put value, Save and reopen, Remove value, Save and reopen
> - Open existing table (Pricing loans)
> - Create scesim file to check execution is not affetced
> - GDST to XLS conversion
> - Help in the changed wizard page
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13527) Thousand of unauthorized requests in between balancer and backend if backend is running in a cluster
by Masafumi Miura (Jira)
[ https://issues.redhat.com/browse/WFLY-13527?page=com.atlassian.jira.plugi... ]
Masafumi Miura updated WFLY-13527:
----------------------------------
Git Pull Request: https://github.com/wildfly/wildfly/pull/13332
> Thousand of unauthorized requests in between balancer and backend if backend is running in a cluster
> ----------------------------------------------------------------------------------------------------
>
> Key: WFLY-13527
> URL: https://issues.redhat.com/browse/WFLY-13527
> Project: WildFly
> Issue Type: Bug
> Reporter: Flavia Rainone
> Assignee: Masafumi Miura
> Priority: Major
>
> A standalone client application is calling EJBs on a backend server through an Undertow loadbalancer.
> The client looks like this:
> {code:java}
> Properties props = new Properties();
> props.put(Context.INITIAL_CONTEXT_FACTORY, WildFlyInitialContextFactory.class.getName());
> props.put(Context.PROVIDER_URL, "http://10.0.0.1:9080/wildfly-services");
> props.put(Context.SECURITY_PRINCIPAL, "some-user");
> props.put(Context.SECURITY_CREDENTIALS, "some-password");
> InitialContext ctx = new InitialContext(props);
> String name="ejb:/playground-jar/JBossManIntClientBean!org.jboss.playground.JBossManIntClient";
> JBossManIntClient bean = (JBossManIntClient) ctx.lookup(name);
> {code}
> A client invoking the same EJB twice result in thousands of requests from the balancer to the backend servers, e. g.:
> * 13468 times:
> {code}
> INFO [io.undertow.accesslog] (default I/O-3) 10.0.0.1 - - [24/Sep/2019:12:03:03 +0200] "POST /wildfly-services/ejb/v1/invoke/-/playground-jar/-/JBossManIntClientBean/-/org.jboss.playground.JBossManIntClient/getHost HTTP/2.0" 401 77 "-" "-" Cookie: "-" Set-Cookie: "-" SessionID: - Thread: "default I/O-3" TimeTaken: 5063
> {code}
> * 2 times:
> {code}
> INFO [io.undertow.accesslog] (default I/O-3) 10.0.0.1 - - [24/Sep/2019:12:06:53 +0200] "POST /wildfly-services/ejb/v1/invoke/-/playground-jar/-/JBossManIntClientBean/-/org.jboss.playground.JBossManIntClient/getHost HTTP/2.0" 200 155 "-" "-" Cookie: "-" Set-Cookie: "-" SessionID: - Thread: "default I/O-3" TimeTaken: 614
> {code}
> *Note:* This behavior only occurs if there's more than a single backend server running in a cluster...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months