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

syntax2.0 include macro has trouble when context=new and included document is syntax1.0 with velocity code.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.2.2
    • Rendering
    • None
    • Unknown

    Description

      Test case:
      Create including document (syntax2.0) put in it:

      {{include document="Main.IncludedDocument" context="new"}}
      

      create included document (syntax1.0) put in it:

      $doc.getFullName()
      
      $doc.getFullName()
      

      (the empty line is necessary)

      Render including document, observe stack overflow.

      test case 2:
      change included document to say:

      $thisIsNotAValidVelocityVariable
      

      Render including document, observe printing of lots of html macros in plain text.

      notes:
      This does not happen if include macro specifies: context="current"

      Also this renders okay:

      $doc.getFullName()
      

      As does this:

      $doc.getFullName()
      $doc.getFullName()
      

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: