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

[m2release] Extract inline event handlers and migrate legacy checkUrl attribute in org/jvnet/hudson/plugins/m2release/M2ReleaseBuildWrapper/global.jelly

XMLWordPrintable

      Problems

      == Legacy checkUrl
      Line: 33
      ----
      checkUrl="'${rootURL}/buildWrapper/M2ReleaseBuildWrapper/urlCheck?urlValue='+escape(findMatchingFormInput(this,'m2release.nexusURL').value)+'&usernameValue='+escape(findMatchingFormInput(this,'m2release.nexusUser').value)+'&passwordValue='+escape(findMatchingFormInput(this,'m2release.nexusPassword').value)"
      ----
      
      == Inline Event Handler
      Line: 24
      ----
      <f:textbox name="m2release.nexusURL" value="${descriptor.nexusURL}" 
      					           onchange="findMatchingFormInput(this,'m2release.nexusPassword').onchange()" />
      ----
      
      == Inline Event Handler
      Line: 28
      ----
      <f:textbox name="m2release.nexusUser" value="${descriptor.nexusUser}" 
      					           onchange="findMatchingFormInput(this,'m2release.nexusPassword').onchange()" />
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers
      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: