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

Unexpected security restriction warning in velocity

    XMLWordPrintable

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The following snippet:

      {{velocity}}
      $xwiki.getClass().name
      {{/velocity}}
      

      produce the following expected output

      com.xpn.xwiki.api.XWiki
      

      but also the following unexpected warning

      WARN  o.x.v.i.DefaultVelocityEngine  - Cannot retrieve method getname from object of class java.lang.Class due to security restrictions.
      

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: