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

[folder-auth] Extract inline script block and event handlers in io/jenkins/plugins/folderauth/FolderAuthorizationStrategyManagementLink/index.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 166
      ----
      <script>
                                  // asynchronously render folder names
                                  getFolders();
                              </script>
      ----
      
      == Inline Event Handler
      Line: 38
      ----
      <button type="button" class="submit-button" onclick="assignSid('global', ${index})">
      ----
      
      == Inline Event Handler
      Line: 41
      ----
      <button type="button" class="submit-button" onclick="removeSid('global', ${index})">
      ----
      
      == Inline Event Handler
      Line: 56
      ----
      <form method="POST" action="${rootURL}/${it.urlName}/deleteGlobalRole"
                                            onsubmit="return confirm('${%confirmDelete}');">
      ----
      
      == Inline Event Handler
      Line: 85
      ----
      <button type="button" onclick="addGlobalRole();" class="submit-button">
      ----
      
      == Inline Event Handler
      Line: 126
      ----
      <button type="button" class="submit-button" onclick="assignSid('folder', ${index})">
      ----
      
      == Inline Event Handler
      Line: 129
      ----
      <button type="button" class="submit-button" onclick="removeSid('folder', ${index})">
      ----
      
      == Inline Event Handler
      Line: 144
      ----
      <form method="POST" action="${rootURL}/${it.urlName}/deleteFolderRole"
                                                onsubmit="return confirm('${%confirmDelete}');">
      ----
      
      == Inline Event Handler
      Line: 191
      ----
      <button id="add-folder-role-button" type="button" class="submit-button"
                                      onclick="addFolderRole();" disabled="disabled">
      ----
      
      == Inline Event Handler
      Line: 234
      ----
      <button type="button" class="submit-button" onclick="assignSid('agent', ${index})">
      ----
      
      == Inline Event Handler
      Line: 237
      ----
      <button type="button" class="submit-button" onclick="removeSid('agent', ${index})">
      ----
      
      == Inline Event Handler
      Line: 252
      ----
      <form method="POST" action="${rootURL}/${it.urlName}/deleteAgentRole"
                                                onsubmit="return confirm('${%confirmDelete}');">
      ----
      
      == Inline Event Handler
      Line: 294
      ----
      <button type="button" class="submit-button" onclick="addAgentRole();">
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: