Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1944

Class#getEnumConstants() should be allowed to be called from Velocity

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      Our secure uberspector forbids calling Class methods except those are whitelisted as safe. We need to add getEnumConstants() since it's a safe method.

      Currently calling this method from velocity fails, breaking the display of select fields derived from Enum on macro parameters defined in wiki pages.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mleduc Manuel Leduc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: