-
Task
-
Resolution: Unresolved
-
Minor
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
[JENKINS-74236] [ftppublisher] Extract inline event handler and migrate legacy checkUrl attribute in WEB-INF/classes/com/zanox/hudson/plugins/FTPPublisher/global.jelly
Assignee | Original: benjaminjaton [ benjaminjaton ] |
Description |
Original:
h4. Problems {noformat} == Inline Event Handler Line: 30 ---- <input class="setting-input" name="ftp.password" type="password" value="${site.password}" onchange="Form.findMatchingInput(this,'ftp.username').onchange()" /> ---- == 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()" /> ---- == 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)" ---- {noformat} h4. Solutions [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers] [https://www.jenkins.io/doc/developer/security/csp/#legacy-javascript-checkurl-validation] |
New:
h4. Problems {noformat} == 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()" /> ---- {noformat} h4. Solutions [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers] [https://www.jenkins.io/doc/developer/security/csp/#legacy-javascript-checkurl-validation] |
Summary | Original: [ftppublisher] Extract inline event handlers and migrate legacy checkUrl attributes in WEB-INF/classes/com/zanox/hudson/plugins/FTPPublisher/global.jelly | New: [ftppublisher] Extract inline event handler and migrate legacy checkUrl attribute in WEB-INF/classes/com/zanox/hudson/plugins/FTPPublisher/global.jelly |