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

Unwanted macro parameters displayed in the WYSIWYG when a rendering macro is written in compiled Groovy

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 4.0
    • Properties
    • None

    Description

      A rendering macro written in Groovy (compiled in a jar and installed using EM for exemple) has the following unwanted macro parameters displayed in the WYSIWYG editor:

      __Timestamp
      _Timestamp_123_Neverhappen1234567890123

      These are some public field added internally by groovy for some mysterious reason.
      It would be nice to filter such fields.

      After a quick discussion with Thomas, it seems reasonable to constrains property names to start with [A-Za-z] only, and therefore exclude those starting with underscore.

      Attachments

        Activity

          People

            Unassigned Unassigned
            softec Denis Gervalle
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: