Uploaded image for project: 'honeycomb'
  1. honeycomb
  2. HONEYCOMB-289

DumpCacheManager not checked for type of cached data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 17.01
    • None
    • HC infra

      Due to fashion that objects are stored in modification cache, the returned object must be checked for type explicitly.

      Example:

      DumpCacheManager<IpFibDetailsReplyDump, Void> ipv4DumpManager
      DumpCacheManager<Ip6FibDetailsReplyDump, Void> ipv6DumpManager

      if both managers are invoked after each other with same cache and same key,
      second call resuts in returning cached instance from first call(that has wrong type for second manager) , so it ends in ClassCastException

            jsrnicek_cisco Jan Srnicek
            jsrnicek_cisco Jan Srnicek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: