Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-65755

j:parse incompatible with st:adjunct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      Context
      j:parse provides a way to process a Jelly block and put the outcome in a variable
      st:ajunct provides a way for developer to inject js/css (and other) resources into the page (with guarantee they are provided only once)

      Problem
      When trying to do a st:adjunct from within the j:parse, there is no effect. Actually the script is written to the textBuffer of the output instead of the XML output (as elements). When the output is transformed into String to be put in the variable, the textBuffer is not used.

      Root cause
      Adjunct#write use out.write instead of startElement/endElement.

      Full details with screenshots: https://github.com/jenkinsci/jenkins/pull/5515#pullrequestreview-667429063

            Unassigned Unassigned
            wfollonier Wadeck Follonier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: