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

In groovy a strange object is injected as variable having the name of the space

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      To reproduce:

      • create a page "services"
      • add as content
        {{groovy}}
          print services.class
        {{/groovy}}
        

      This prints "class services"

      This seems to be a wrong interpretation of the JSR223 specification (from XWiki and not from Groovy), the "javax.script.filename" is supposed to contains the name of the attribute which contains the source name but we have actually directly set the name of the source in it (so "services.WebHome" for example).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: