Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
jboss-fuse-6.1
-
None
-
%
-
6.3 Sprint 4 (Mar 28 - Apr 29)
Description
In the EnsembleRemove.applyEnsembleConfiguration() method, the following code snippet throws a StringIndexOutOfBoundsException:
String currentDataDir = currentConfig.get("dataDir"); currentDataDir = currentDataDir.substring(0, currentDataDir.lastIndexOf("/"));
In some cases, the currentDataDir String variable's value does not contain the '/' character; therefore a -1 is returned, resulting in a StringIndexOutOfBoundsException.
The code should check for this.