Hide Forgot
Description of problem: ModuleOptions component assumes structure of the module options attribute include an index number that can be used to match attribute states. These are not necessarily present in the EAP7 configuration. EAP6: subsystem=security,security-domain=RHQDSSecurityDomainNoTx,authentication=classic,login-modules:0,module-option In EAP7 there are examples such as jaspitest which doesn't have the index number that is expected: subsystem=security,security-domain=jaspitest,authentication=jaspi,login-module-stack,module-options This causes a NumberFormatException since the AS7 module can't handle this sort of scenario. Other security-domains include the necessary :0/:1 etc so they can be parsed correctly. Version-Release number of selected component (if applicable): RHQ master, EAP7 ER04 How reproducible: Always Steps to Reproduce: 1. Install EAP7 2. Start monitoring 3. Watch agent.log Actual results: Expected results: Additional info:
ModuleOptionsComponent.loadResourceConfiguration lines 347 and 316 at least with input strings failing such as "curity", "ult,subsystem=security,security-domain=jaspitest,authentication=jaspi,login-module-stack" and "ult"
*** Bug 1314303 has been marked as a duplicate of this bug. ***
Fixed in master: commit f0d02edd1706df08e0d49813a38a3371b9cea33e Author: Michael Burman <miburman> Date: Fri Mar 4 18:26:38 2016 +0200 [BZ 1304739] Check for NumberFormatException when parsing security-module config
Verified on JON 3.3 EAP plugin pack Update 04 DR01 Installed and imported EAP7. Verified that agent log does not display NumberFormatException.
*** Bug 1320289 has been marked as a duplicate of this bug. ***