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

[r7insight-log-forwarder] Extract inline script block and event handler in com/rapid7/jenkins/R7InsightBuildWrapper/config.jelly

      Problems

      == Inline Script Block
      Line: 3
      ----
      <script>
              function setEndpoint(region) {
                  window.document.getElementById('r7_endpoint').value = region + ".data.logs.insight.rapid7.com";
              }
          </script>
      ----
      
      == Inline Event Handler
      Line: 12
      ----
      <f:select name="region"
                        value="${it.region}"
                        onchange="setEndpoint(this.value)"
              />
      ----
      

      Solutions

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

          [JENKINS-74643] [r7insight-log-forwarder] Extract inline script block and event handler in com/rapid7/jenkins/R7InsightBuildWrapper/config.jelly

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

          {noformat}
          == Inline Event Handler
          Line: 12
          ----
          <f:select name="region"
                            value="${it.region}"
                            onchange="setEndpoint(this.value)"
                  />
          ----

          == Inline Script Block
          Line: 3
          ----
          <script>
                  function setEndpoint(region) {
                      window.document.getElementById('r7_endpoint').value = region + ".data.logs.insight.rapid7.com";
                  }
              </script>
          ----

          == Inline Event Handler
          Line: 12
          ----
          <f:select name="region"
                            value="${it.region}"
                            onchange="setEndpoint(this.value)"
                  />
          ----

          == Inline Script Block
          Line: 3
          ----
          <script>
                  function setEndpoint(region) {
                      window.document.getElementById('r7_endpoint').value = region + ".data.logs.insight.rapid7.com";
                  }
              </script>
          ----
          {noformat}

          h4. Solutions

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

          {noformat}
          == Inline Script Block
          Line: 3
          ----
          <script>
                  function setEndpoint(region) {
                      window.document.getElementById('r7_endpoint').value = region + ".data.logs.insight.rapid7.com";
                  }
              </script>
          ----

          == Inline Event Handler
          Line: 12
          ----
          <f:select name="region"
                            value="${it.region}"
                            onchange="setEndpoint(this.value)"
                  />
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          Summary Original: [r7insight-log-forwarder] Extract inline script blocks and event handlers in com/rapid7/jenkins/R7InsightBuildWrapper/config.jelly New: [r7insight-log-forwarder] Extract inline script block and event handler in com/rapid7/jenkins/R7InsightBuildWrapper/config.jelly

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

              Created:
              Updated: