-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.5
-
Component/s: nuxeoctl start/stop/admin, Runtime
-
Tags:
-
Backlog priority:250
Enforce reading to avoid StringIndexOutOfBoundsException like in the following stacktrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1937) at org.nuxeo.launcher.config.ConfigurationGenerator.loadConfiguration(ConfigurationGenerator.java:863) at org.nuxeo.launcher.config.ConfigurationGenerator.saveConfiguration(ConfigurationGenerator.java:691) at org.nuxeo.launcher.config.ConfigurationGenerator.saveConfiguration(ConfigurationGenerator.java:670) at org.nuxeo.launcher.config.ConfigurationGenerator.saveFilteredConfiguration(ConfigurationGenerator.java:716) at org.nuxeo.launcher.config.ConfigurationGenerator.addTemplate(ConfigurationGenerator.java:1233) at org.nuxeo.connect.update.impl.task.commands.Config.doRun(Config.java:78) at org.nuxeo.connect.update.impl.task.commands.AbstractCommand.run(AbstractCommand.java:112) at org.nuxeo.connect.update.impl.task.CommandsTask.doRun(CommandsTask.java:119) at org.nuxeo.connect.update.impl.task.InstallTask.doRun(InstallTask.java:51) at org.nuxeo.connect.update.impl.task.AbstractTask.run(AbstractTask.java:255) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.performTask(LocalPackageManager.java:433) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.install(LocalPackageManager.java:476) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.run(LocalPackageManager.java:281) at org.nuxeo.ecm.admin.offline.update.LocalPackageManager.main(LocalPackageManager.java:228)