Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-1589

Ensure the Cache is Serializable, non-null

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.3
    • Fix Version/s: 4.3.0
    • Component/s: Clustering
    • Labels:
      None

      Description

      The current implementation of org.jivesoftware.util.cache.Cache imposes no particular constraints on the keys and values placed within it.

      However, whilst the implementation org.jivesoftware.util.cache.DefaultCache will happily take null or non-serializable keys, the constraints of Hazelcast mean that org.jivesoftware.openfire.plugin.util.cache.ClusteredCache must take serializable, non-null keys.

      This can lead to bugs - for example OF-1480, the original implementation of OF-1539

      To avoid this, DefaultCache should enforce non-null, serializable keys and values.

        Attachments

          Activity

            People

            Assignee:
            gdt Greg Thomas
            Reporter:
            gdt Greg Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: