Bug 1117843 - stored_password attribute is not present in org.jgroups related MBeans (EncryptProtocolIT test)
Summary: stored_password attribute is not present in org.jgroups related MBeans (Encry...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: JGroups
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER2
: 6.3.1
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-09 13:43 UTC by Tomas Sykora
Modified: 2015-01-26 14:03 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-01-26 14:03:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-4496 0 Major Resolved EncryptProtocolIT shouldn't check passwords via JMX 2014-09-09 11:19:42 UTC

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).


Note You need to log in before you can comment on or make changes to this bug.