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

Unexpected security restriction warning in velocity

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: