Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1117843

Summary: stored_password attribute is not present in org.jgroups related MBeans (EncryptProtocolIT test)
Product: [JBoss] JBoss Data Grid 6 Reporter: Tomas Sykora <tsykora>
Component: JGroupsAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bban, jmarkos, pslavice, sjacobs, vjuranek
Target Milestone: ER2   
Target Release: 6.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 14:03:36 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:

Description Tomas Sykora 2014-07-09 13:43:52 UTC
This issue seems to be only product related. Test is passing in ISPN team city. 

It is regression from ER7 (passing) to CR1/CR2.

Configuration file clustered-with-encrypt.xml looks OK to me but JDG somehow can't get properties registered. 

<protocol type="ENCRYPT">
    <property name="key_store_name">${jboss.server.config.dir}/server_jceks.keystore</property>
    <property name="store_password">secret</property>
    <property name="alias">memcached</property>
</protocol>

I can't see them even using jconsole. 

Of course, we have null pointer here: assertEquals("secret", getAttribute(providerCoordinator, ENCRYPT_MBEAN, "store_password"));

testEncryptProtocolRegistered(org.infinispan.server.test.security.jgroups.encrypt.EncryptProtocolIT)  Time elapsed: 51.783 sec  <<< ERROR!
java.lang.NullPointerException: null
	at org.infinispan.server.test.util.ITestUtils.getAttribute(ITestUtils.java:72)
	at org.infinispan.server.test.security.jgroups.encrypt.EncryptProtocolIT.testEncryptProtocolRegistered(EncryptProtocolIT.java:90)

Let's have it properly tracked and investigate further what's going on out there...

Comment 2 Vojtech Juranek 2014-07-10 14:04:23 UTC
This is actually not a bug in JDG, but a bug in the test - passwords shouldn't be available via JMX, see JGRP-1854 [1].

I'll send a PR with fix once PR in upstream [2] is accepted.

[1] https://issues.jboss.org/browse/JGRP-1854
[2] https://github.com/infinispan/infinispan/pull/2703

Comment 3 Vojtech Juranek 2014-07-11 13:37:49 UTC
I found out, that some other attributes, which *should* be available via JMX cannot be access. Keeping this BZ to track wrong test in JDG and loogged new bug for it - BZ #1118767 (test can be fixed once this issue is fixed).