-
Task
-
Resolution: Unresolved
-
Minor
Problems
== Inline Script Block Line: 47 ---- <script> var ChatworkPublisher = { clearCache: function(){ new Ajax.Request("${rootURL}/descriptor/com.vexus2.jenkins.chatwork.jenkinschatworkplugin.ChatworkPublisher/clearCache", { onSuccess: function(rsp) { alert("Clear cache done"); } }); } }; </script> ---- == Inline Event Handler Line: 45 ---- <input type="button" value="clear" onclick="ChatworkPublisher.clearCache();"/> ----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers
[JENKINS-74414] [chatwork] Extract inline script block and event handler in com/vexus2/jenkins/chatwork/jenkinschatworkplugin/ChatworkPublisher/global.jelly
Assignee | Original: Hikaru Tooyama [ vexus2 ] |
Description |
Original:
h4. Problems {noformat} == Inline Event Handler Line: 45 ---- <input type="button" value="clear" onclick="ChatworkPublisher.clearCache();"/> ---- == Inline Script Block Line: 47 ---- <script> var ChatworkPublisher = { clearCache: function(){ new Ajax.Request("${rootURL}/descriptor/com.vexus2.jenkins.chatwork.jenkinschatworkplugin.ChatworkPublisher/clearCache", { onSuccess: function(rsp) { alert("Clear cache done"); } }); } }; </script> ---- == Inline Event Handler Line: 45 ---- <input type="button" value="clear" onclick="ChatworkPublisher.clearCache();"/> ---- == Inline Script Block Line: 47 ---- <script> var ChatworkPublisher = { clearCache: function(){ new Ajax.Request("${rootURL}/descriptor/com.vexus2.jenkins.chatwork.jenkinschatworkplugin.ChatworkPublisher/clearCache", { onSuccess: function(rsp) { alert("Clear cache done"); } }); } }; </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: 47 ---- <script> var ChatworkPublisher = { clearCache: function(){ new Ajax.Request("${rootURL}/descriptor/com.vexus2.jenkins.chatwork.jenkinschatworkplugin.ChatworkPublisher/clearCache", { onSuccess: function(rsp) { alert("Clear cache done"); } }); } }; </script> ---- == Inline Event Handler Line: 45 ---- <input type="button" value="clear" onclick="ChatworkPublisher.clearCache();"/> ---- {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: [chatwork] Extract inline script blocks and event handlers in com/vexus2/jenkins/chatwork/jenkinschatworkplugin/ChatworkPublisher/global.jelly | New: [chatwork] Extract inline script block and event handler in com/vexus2/jenkins/chatwork/jenkinschatworkplugin/ChatworkPublisher/global.jelly |