Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16385

Setting configuration parameters eventstream.usemainstore and eventstream.localstore will cause a ClassCastException.

    Details

    • Difficulty:
      Trivial
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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;
          }
      
      

       

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              aj Andreas Jonsson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: