Details
-
Bug
-
Resolution: Fixed
-
Critical
-
11.1-rc-1
-
None
-
Trivial
-
N/A
-
N/A
-
Description
Setting configuration parameters eventstream.usemainstore and eventstream.localstore will cause a ClassCastException.
The reason is that in LegacyEventStreamStoreConfiguration.getProperty does not pass on the default value to the configuration source, which seems to be required for the configuration source to be able to determine a conversion method.
private boolean getProperty(String name, boolean defaultValue) { if (configurationSource.containsKey(PREFERENCE_PREFIX + name)) { return configurationSource.getProperty(PREFERENCE_PREFIX + name); } if (legacyConfigurationSource.containsKey(LEGACY_PREFERENCE_PREFIX + name)) { return legacyConfigurationSource.getProperty(LEGACY_PREFERENCE_PREFIX + name).equals(1); } return defaultValue; }