-
Task
-
Resolution: Unresolved
-
Minor
Problems
== Inline Script Block Line: 3 ---- <script type='text/javascript'> function deselectCheckbox(el){ for (i = 0; i < document.getElementsByName("rpd.defaultProfile").length; i++) { document.getElementsByName("rpd.defaultProfile")[i].checked=false; } el.checked=true; } </script> ---- == Inline Script Block Line: 37 ---- <script type='text/javascript'> setInterval(function(){ var fields = []; YAHOO.util.Dom.getElementsByClassName('rpd-config-field', "input").forEach(function(e){ var trouble = false; if(e.value == null || e.value == ''){ e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling; e.targetElement.innerHTML = "<div class=error> Field cannot be empty </div>"; trouble = true; } else{ if(e.name == "rpd.serverProfileName" ){ if((fields.indexOf(e.value) >= 0 || fields.indexOf(e.defaultValue) >= 0)){ e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling; e.targetElement.innerHTML = "<div class=error> Duplicates are not allowed </div>"; trouble = true; } } } if(!trouble){ e.targetElement = findFollowingTR(e, "validation-error-area").firstChild.nextSibling.innerHTML = ''; } fields.push(e.value); }); }, 2000); </script> ---- == Inline Event Handler Line: 16 ---- <f:checkbox name="rpd.defaultProfile" value="${serverProfile.defaultProfile}" checked="${serverProfile.isDefaultProfile()}" onclick="deselectCheckbox(this)"/> ----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers