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

[test-results-analyzer] Remove eval call in chart-generator.js

      Note

      While testing this plugin, evaluate whether the third-party libraries in src/main/webapp/jquery 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

      == (g)eval Call
      File: ./src/main/webapp/js/chart-generator.js +
      Line: 89
      ----
      (eval(
      ----
      

      Solution

      https://www.jenkins.io/doc/developer/security/csp/#eval-calls

          [JENKINS-74751] [test-results-analyzer] Remove eval call in chart-generator.js

          Basil Crow created issue -
          Basil Crow made changes -
          Description Original: h4. Problem

          {noformat}
          == (g)eval Call
          File: ./src/main/webapp/js/chart-generator.js +
          Line: 89
          ----
          (eval(
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#eval-calls]
          New: h1. Note

          *While testing this plugin, evaluate whether the third-party libraries in {{src/main/webapp/jquery}} 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}
          == (g)eval Call
          File: ./src/main/webapp/js/chart-generator.js +
          Line: 89
          ----
          (eval(
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#eval-calls]
          Basil Crow made changes -
          Assignee Original: Varun Menon [ menonvarun ]
          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 -
          Remote Link New: This issue links to "jenkinsci/test-results-analyzer-plugin/pull/122 (Web Link)" [ 30454 ]
          Yaroslav Afenkin made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

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

              Created:
              Updated: