Bug 900944 (JBPAPP6-1265)

Summary: SPNEGOLoginModuleTestCase fails consistently on IBMJDK(only ipv4) and IPv6 (all jdk,pure or dualstack) due to LoginException
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Madhumita Sadhukhan <msadhukh>
Component: SecurityAssignee: Josef Cacek <jcacek>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Jelinek <pjelinek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: brian.stansberry, cdewolf, ewertz, jcacek, msadhukh, pjelinek, pslavice, rhatlapa
Target Milestone: ER6   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1265
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:20:34 UTC 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:
Attachments:
Description Flags
error_ipv6_alljdk_JBPAPP-10036
none
error_ibmjdk_JBPAPP-10036.log none

Comment 1 Madhumita Sadhukhan 2012-10-03 08:31:34 UTC
Attachment: Added: error_ipv6_alljdk_JBPAPP-10036
Attachment: Added: error_ibmjdk_JBPAPP-10036.log


Comment 2 Madhumita Sadhukhan 2012-10-31 13:52:10 UTC
Hi Peter,

      Could you please take a look at this failure?The tests fail due to Kerberos authentication

Comment 3 Anne-Louise Tangring 2012-11-13 20:53:11 UTC
Docs QE Status: Removed: NEW 


Comment 4 Madhumita Sadhukhan 2012-12-10 19:00:27 UTC
Josef,since you are author of this testcase assigning this jira to you

Comment 6 Josef Cacek 2013-06-27 04:30:39 UTC
This one was fixed in 6.1.0 already.
@Pavel: could you please verify?

Comment 8 Joe Wertz 2013-08-30 11:00:44 UTC
Came across this while cleaning the testsuite for EAP6.2. The recent failures. Not the original ones.

Testing this locally, the InetAddress.getLocalHost() call isn't returning an IP address I can actually associate with my computer. Not the loopback, not from the ifconfig info, and not the external, so I'm not sure where it's getting the address, but it certainly doesn't work to connect either to this GSSTestServer or anything else on my system.

Adding InetAddress.getLocalHost().getLoopbackAddress() seems to solve the problem, if the loopback address is all that's needed, but from reading it sounds like getLocalHost() isn't really recommended as the implementation varies between systems somehow.

Another method is sifting thru NetworkInterface.getNetworkInterfaces() and either finding the loopback address or finding the... not-loopback, I suppose. There's a method to see if it's a loopback address. The weird-unknown-ip causing the problem doesn't show up in this call, so it might be safer.

Not sure where the unknown-ip is coming from though.

Comment 13 Pavel Jelinek 2013-12-10 10:37:33 UTC
The original issue no more occurs. 
The problem mentioned in comment 7 still persists but is specific for IPV6 on OpenJDK 1.6 and has new BZ https://bugzilla.redhat.com/show_bug.cgi?id=1033128 
So I'm verifying this one.