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

[doclinks] Extract inline event handler and migrate legacy checkUrl attributes in hudson/plugins/doclinks/DocLinksPublisher/config.jelly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • doclinks-plugin

      Problems

      == Legacy checkUrl
      Line: 9
      ----
      checkUrl="'descriptorByName/DocLinksPublisher/checkTitle?title='+encodeURIComponent(this.value)"
      ----
      
      == Legacy checkUrl
      Line: 20
      ----
      checkUrl="'descriptorByName/DocLinksPublisher/checkDirectory?dir='+encodeURIComponent(this.value)"
      ----
      
      == Legacy checkUrl
      Line: 30
      ----
      checkUrl="'descriptorByName/DocLinksPublisher/checkFile?dir=' + encodeURIComponent(findMatchingFormInput(this, 'doc.directory').value) + '&file='+encodeURIComponent(this.value)"
      ----
      
      == Inline Event Handler
      Line: 18
      ----
      <f:textbox name="doc.directory" value="${doc.directory}"
                           onchange="findMatchingFormInput(this,'doc.file').onchange()"
                           checkUrl="'descriptorByName/DocLinksPublisher/checkDirectory?dir='+encodeURIComponent(this.value)" />
      ----
      

      Solutions

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

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

              Created:
              Updated: