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

Retrieving properties of a wiki configuration source can cause a ClassCastException if a previous call cached a diferent data type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 6.3-rc-1
    • 6.3-milestone-1
    • Configuration
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      The problem was introduced by XWIKI-11163, since a document configuration source caches the first converted value it is requested. When a different data type is requested for the same cache key, the ClassCastException occurs because the cached value can not be statically cast to the newly requested data type.

      See more details in the commit.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: