[metadata] Migrate legacy checkUrl attributes in WEB-INF/classes/com/sonyericsson/hudson/plugins/metadata/model/values/DateMetadataValue/config.jelly

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: metadata-plugin

      Problems

      == Legacy checkUrl
      Line: 33
      ----
      checkUrl="'/MetadataChecks/checkName?value='+escape(this.value)"
      ----
      
      == Legacy checkUrl
      Line: 45
      ----
      checkUrl="'/MetadataChecks/checkDateValue?yearValue='+escape(Form.findMatchingInput(this,'year').value)
                                     +'&monthValue='+escape(Form.findMatchingInput(this,'month').value)
                                     +'&dayValue='+escape(Form.findMatchingInput(this,'day').value)"
      ----
      
      == Legacy checkUrl
      Line: 56
      ----
      checkUrl="'/MetadataChecks/checkDateValue?yearValue='+escape(Form.findMatchingInput(this,'year').value)
                                     +'&monthValue='+escape(Form.findMatchingInput(this,'month').value)
                                     +'&dayValue='+escape(Form.findMatchingInput(this,'day').value)"
      ----
      
      == Legacy checkUrl
      Line: 66
      ----
      checkUrl="'/MetadataChecks/checkDateValue?yearValue='+escape(Form.findMatchingInput(this,'year').value)
                                     +'&monthValue='+escape(Form.findMatchingInput(this,'month').value)
                                     +'&dayValue='+escape(Form.findMatchingInput(this,'day').value)"
      ----
      
      == Legacy checkUrl
      Line: 86
      ----
      checkUrl="'/MetadataChecks/checkTimeValue?hourValue='+escape(Form.findMatchingInput(this,'hour').value)
                                             +'&minuteValue='+escape(Form.findMatchingInput(this,'minute').value)
                                             +'&secondValue='+escape(Form.findMatchingInput(this,'second').value)"
      ----
      
      == Legacy checkUrl
      Line: 96
      ----
      checkUrl="'/MetadataChecks/checkTimeValue?hourValue='+escape(Form.findMatchingInput(this,'hour').value)
                                             +'&minuteValue='+escape(Form.findMatchingInput(this,'minute').value)
                                             +'&secondValue='+escape(Form.findMatchingInput(this,'second').value)"
      ----
      
      == Legacy checkUrl
      Line: 106
      ----
      checkUrl="'/MetadataChecks/checkTimeValue?hourValue='+escape(Form.findMatchingInput(this,'hour').value)
                                             +'&minuteValue='+escape(Form.findMatchingInput(this,'minute').value)
                                             +'&secondValue='+escape(Form.findMatchingInput(this,'second').value)"
      ----
      

      Solution

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

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

              Created:
              Updated: