Bug 771201
Summary: | EPP 5.2 discovery fails with java.lang.StringIndexOutOfBoundsException | |||
---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | bkramer <bkramer> | |
Component: | Plugins | Assignee: | Jay Shaughnessy <jshaughn> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
Severity: | high | Docs Contact: | ||
Priority: | urgent | |||
Version: | 4.2 | CC: | hrupp, jshaughn, loleary, lzoubek, tfonteyn | |
Target Milestone: | --- | |||
Target Release: | JON 3.0.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 4.3 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 785851 (view as bug list) | Environment: | ||
Last Closed: | 2013-09-03 15:16:38 UTC | Type: | --- | |
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: | 781623, 781628, 781630, 785851, 798024 |
Description
bkramer
2012-01-02 12:35:49 UTC
run.jar MANIFEST entries: Implementation-Version: 5.1.0 (build: SVNTag=JBPAPP_5_1_0 date=2010091 50028) Implementation-Version: JBoss-EPP 5.2.0.GA (build: SVNTag=5.2.0.GA dat e=201112080623) http://jbosslxr.gsslab.fab.redhat.com/lxr/rhq/source//modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/JBossInstallationInfo.java?v=3.0.0 org/rhq/plugins/jbossas5/helper/JBossInstallationInfo.java 115 int spaceIndex = validateImplementationVersion(implementationVersion); 116 String version = implementationVersion.substring(0, spaceIndex); validateImplementationVersion() looks for the first space in the attribute, and treats that as version: 5.1.0 JBoss-EPP So 5.2 detection fails master commit 38ca523ad95e2fdc3adec301fef5f88951c6dd2a EPP 5.2 has changed the format of its Implementation-Version string in the manifest (5.1.1 was different). Add support for the new format. Also, in general, fail more gracefully when encountering an unexpected version string. Test Notes: Test EPP 5.2 discovery. Ensure AS4 and AS5 plugins process correctly. AS4 should not throw errors (and should skip verthe process). AS5 should not throw errors and should discover an EPP 5.2 as an AS5 server resource. For extra credit ensure that base EAP/AS/SOA 4,5 variants all still get processed correctly. verified on Version: 3.0.1.GA Build Number: 784c8ce:5cde182 Removing RHQ4.3 from target version, we've got 785851 for that now. Bulk closing of old issues in VERIFIED state. |