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

XWikiContext.setDoc does not support null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.3, 1.9 M2
    • Fix Version/s: 1.8.4, 1.9 RC1, 2.0 M1
    • Component/s: {Unused} Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      This makes any context property saving restoration fail when the former value did not exists in the context.

      I think the best would be that XWikiContext extends HashMap instead of Hashtable (which is not supposed to be used anymore in java BTW) to support anything as property value.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: