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

[yaml-axis] Extract inline script block and migrate legacy checkUrl attribute in org/jenkinsci/plugins/yamlaxis/YamlMatrixExecutionStrategy/config.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 3
      ----
      <script><![CDATA[
          var YamlMatrixExecutionStrategy = {
            // ref. https://issues.jenkins-ci.org/browse/JENKINS-15604
            cmChange: function(editor, change){
              editor.save();
              $$('.validated').forEach(function (e) {e.onchange()})
            }
          }
        ]]></script>
      ----
      
      == Legacy checkUrl
      Line: 21
      ----
      checkUrl="'descriptorByName/YamlMatrixExecutionStrategy/checkYamlText?value='+escape(this.value)"
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#legacy-javascript-checkurl-validation

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: