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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 11.4-rc-1, 11.3.1
    • 11.1-rc-1
    • Event Stream
    • 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;
          }
      
      

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: