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

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.3-milestone-1
    • Fix Version/s: 6.3-rc-1
    • Component/s: Configuration
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: