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

[artifactory] Extract inline script blocks and event handler in org/jfrog/hudson/ArtifactoryRedeployPublisher/config.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 59
      ----
      <script>
                              var bindToDescriptor =
                              <st:bind value="${descriptor}"/>
                          </script>
      ----
      
      == Inline Script Block
      Line: 266
      ----
      <script>
              function updateViewWithCredentials() {
                  try {
                      let credentialsPluginFlag = JSON.parse(document.getElementById('useCredentialsPluginoverridingDeployerCredentials').value);
                      let legacyCredentials = document.getElementById('legacyoverridingDeployerCredentials');
                      let credentialsPlugin = document.getElementById('overridingDeployerCredentials-${uniqueId}');
                      legacyCredentials.style.display = credentialsPluginFlag ? 'none' : '';
                      credentialsPlugin.style.display = credentialsPluginFlag ? '' : 'none';
                  } catch (exception) {
                      setTimeout(updateViewWithCredentials, 0);
                  }
              }
              updateViewWithCredentials();
          </script>
      ----
      
      == Inline Event Handler
      Line: 27
      ----
      <select class="setting-input" name="userPluginKey" id="customStagingConfiguration-${s.artifactoryUrl}-${uniqueId}"
                                      onchange="setStagingParamsSelectedValue(this)">
      ----
      

      Solutions

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

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

              Created:
              Updated: