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

[sloccount] Extract inline script block in hudson/plugins/sloccount/SloccountResult/files.jelly

      Note

      While testing this plugin, evaluate whether the third-party libraries in src/main/webapp/yui are compatible with CSP in restrictive mode. The plugin may need to be upgraded from jQuery 1.x to 3.x to fully function in CSP restrictive mode.

      Problem

      == Inline Script Block
      Line: 41
      ----
      <script type="text/javascript">
                Behaviour.applySubtree(document.getElementById('statistics'));
        </script>
      ----
      

      Solution

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

          [JENKINS-74195] [sloccount] Extract inline script block in hudson/plugins/sloccount/SloccountResult/files.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Assignee Original: npiguet [ npiguet ]
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 41
          ----
          <script type="text/javascript">
                    Behaviour.applySubtree(document.getElementById('statistics'));
            </script>
          ----

          == Inline Script Block
          Line: 41
          ----
          <script type="text/javascript">
                    Behaviour.applySubtree(document.getElementById('statistics'));
            </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          New: h4. Problem

          {noformat}
          == Inline Script Block
          Line: 41
          ----
          <script type="text/javascript">
                    Behaviour.applySubtree(document.getElementById('statistics'));
            </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Summary Original: [sloccount] Extract inline script blocks in hudson/plugins/sloccount/SloccountResult/files.jelly New: [sloccount] Extract inline script block in hudson/plugins/sloccount/SloccountResult/files.jelly
          Basil Crow made changes -
          Description Original: h4. Problem

          {noformat}
          == Inline Script Block
          Line: 41
          ----
          <script type="text/javascript">
                    Behaviour.applySubtree(document.getElementById('statistics'));
            </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          New: h1. Note

          *While testing this plugin, evaluate whether the third-party libraries in {{src/main/webapp/yui}} are compatible with CSP in restrictive mode. The plugin may need to be upgraded from jQuery 1.x to 3.x to fully function in CSP restrictive mode.*

          h4. Problem

          {noformat}
          == Inline Script Block
          Line: 41
          ----
          <script type="text/javascript">
                    Behaviour.applySubtree(document.getElementById('statistics'));
            </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Yaroslav Afenkin made changes -
          Assignee New: Yaroslav Afenkin [ yafenkin ]
          Yaroslav Afenkin made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Yaroslav Afenkin made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Yaroslav Afenkin made changes -
          Remote Link New: This issue links to "jenkinsci/sloccount-plugin/pull/107 (Web Link)" [ 30404 ]

            yafenkin Yaroslav Afenkin
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: