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

    • Bug
    • Resolution: Fixed
    • Major
    • 4.1.4, 4.2-milestone-3
    • 4.1.3, 4.2-milestone-2
    • Old Core
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: