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

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

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: