Bug 1204957

Summary: [GSS] (6.4.z) EJB client automatically retries on authentication errors
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Derek Horton <dehort>
Component: EJBAssignee: Derek Horton <dehort>
Status: CLOSED CURRENTRELEASE QA Contact: hsvabek
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.1CC: bbaranow, cdewolf, egonzale, jawilson, jmartisk, rsvoboda
Target Milestone: CR2   
Target Release: EAP 6.4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The EJB client code will automatically retry the connection even if the connection failed due to authentication failure. Consequence: The login module is called twice for no reason. Fix: Use the following system property on the client side to disable the reconnect on authentication failures logic: -Djboss-ejb-client.reconnectOnAuthenticationFailures=false Result: The EJB client code will not automatically retry the connection in the event of an authentication failure.
Story Points: ---
Clone Of: 1203465 Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1196116, 1203465, 1207953    

Description Derek Horton 2015-03-23 21:31:08 UTC
+++ This bug was initially created as a clone of Bug #1203465 +++

Description of problem:
The EJB client automatically retries on authentication errors.  It should be possible to disable this retry/reconnect logic.

Comment 1 Derek Horton 2015-03-23 21:32:06 UTC
Pull Request:
https://github.com/jbossas/jboss-ejb-client/pull/109

Comment 2 Derek Horton 2015-03-27 16:25:50 UTC
Upstream PR:
https://github.com/jbossas/jboss-ejb-client/pull/107

Comment 3 Derek Horton 2015-03-27 17:20:04 UTC
Use the following system property on the client side to disable the reconnect on authentication failures logic:

  -Djboss-ejb-client.reconnectOnAuthenticationFailures=false

Comment 4 Enrique Gonzalez Martinez 2015-04-09 10:16:10 UTC
Component backport PR (merged):
https://github.com/jbossas/jboss-ejb-client/pull/109

Component upstream PR:
https://github.com/jbossas/jboss-ejb-client/pull/107

modified. pr in 1.x branch is merged.

Comment 5 Rostislav Svoboda 2015-04-27 11:40:38 UTC
Fix is not merged in master.

QA team has test for this, we must include it in CP01 payload as there was one-off for this issue (BZ 1203465).

Comment 6 Rostislav Svoboda 2015-04-27 11:41:56 UTC
holding qa_ack till we have it merged in master

Comment 7 Enrique Gonzalez Martinez 2015-04-27 12:48:58 UTC
new pr for master branch (2.x in ejb-client case)

2.x is the master branch for ejb-client.

New PR sent: https://github.com/jbossas/jboss-ejb-client/pull/113

Comment 9 Rostislav Svoboda 2015-05-05 08:16:14 UTC
qa_acking as we have one-off 1203465 delivered to customers

Comment 10 hsvabek 2015-05-18 11:22:33 UTC
verified

Comment 11 Petr Penicka 2017-01-17 10:00:37 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 12 Petr Penicka 2017-01-17 10:00:57 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.