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

[ftppublisher] Extract inline event handler and migrate legacy checkUrl attribute in WEB-INF/classes/com/zanox/hudson/plugins/FTPPublisher/global.jelly

XMLWordPrintable

      Problems

      == Legacy checkUrl
      Line: 26
      ----
      checkUrl="'${rootURL}/publisher/FTPPublisher/loginCheck?hostname='+escape(Form.findMatchingInput(this,'ftp.hostname').value)+'&port='+escape(Form.findMatchingInput(this,'ftp.port').value)+'&user='+escape(this.value)+'&pass='+escape(Form.findMatchingInput(this,'ftp.password').value)+'&ftpDir='+escape(Form.findMatchingInput(this,'ftp.ftpDir').value)"
      ----
      
      == Inline Event Handler
      Line: 30
      ----
      <input class="setting-input" name="ftp.password"
                         type="password" value="${site.password}"
      				   onchange="Form.findMatchingInput(this,'ftp.username').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: