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

Trying to edit a missing object property with the new WYSIWYG editor can lead to infinite include recursion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.9.2, 2.0 M2
    • 2.0 M1, 1.9.1
    • WYSIWYG Editor
    • None
    • any
    • recursive include
    • Integration
    • Trivial

    Description

      Follow this steps to reproduce:

      • create a XWiki class, like XWiki.MyClass, and add some properties. Include one property (lets call it A) that is editable with the WYSIWYG editor
      • create a sheet for XWiki.MyClass, like XWiki.MyClassSheet
      • create a page Space.MyPage and add an object of type XWiki.MyClass
      • set the content of Space.MyPage to:
        {{include document="XWiki.MyClassSheet"/}}
        
      • Edit XWiki.MyClass and add a new property that is editable with the WYSIWYG editor (let call it B)
      • Edit Space.MyPage in inline mode

      The editor for the first property (A) has the right content (empty string or the value of the property) while the editor for the second property (B) has the content of Space.MyPage, which is the include statement. If you try to save you'll get a infinite include recursion (the sheet displays the property which includes the sheet which displays the property which ...).

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: