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

copyDocument should not copy the custom mapping of the document xClass

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.3, 4.2-milestone-2
    • Fix Version/s: 4.1.4, 4.2-milestone-3
    • Component/s: Old Core
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The rational is that copying an "internal" mapping would probably never work since the hibernate mapping stay unchanged, and that copying a dynamic custom mapping would cause 2 separate class to be mapped the same.

      The most common example is copying XWiki.XWikiPreferences, which cause the XWiki.XWikiPreferences class to be cloned. This new copy of the class should not be set to "internal" custom mapping, or it will be unusable.

        Attachments

          Activity

            People

            Assignee:
            softec Denis Gervalle
            Reporter:
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: