-
Task
-
Resolution: Unresolved
-
Minor
Problem
== Inline Script Block (Java) File: org/jenkinsci/plugins/youtrack/YouTrackChangeLogAnnotator.java Line: 53 ---- <script>\n"; String js = "var tooltip = new YAHOO.widget.Tooltip(\"tt1\", {\n context: \"" +commitId+ "\"\n});\n\nfunction updateData(cfg, data) {\n var id = data.id;\n\n var summaryField = data.summary;\n var descriptionField = data.description;\n var resolvedField = data.resolved;\n\n\n var text;\n var desc = \"\";\n if(descriptionField) {\n desc = descriptionField;\n }\n\n if (resolvedField == null) {\n text = \"<h2>\" + id + \": \" + summaryField + \"</h2><p>\" + desc + \"</p>\";\n } else {\n text = \"<h2><del>\" + id + \": \" + summaryField + \"</del></h2><p>\" + desc + \"</p>\";\n }\n cfg.setProperty(\"text\", text)\n}\n\ntooltip.contextTriggerEvent.subscribe(\n \n \n function (type, args) {\n var context = args[0];\n var cfg = this.cfg;\n cfg.setProperty(\"text\", \"Loading data...\");\n \n var request = Q.ajax({\n url: \"" + issueUrl + "\",\n dataType: \"json\"\n });\n \n request.done(\n function(data) {\n updateData(cfg, data);}\n );\n \n }\n);\n"; s += js + "\n</script> ----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks