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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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,'defaultYear').value)
                                     +'&monthValue='+escape(Form.findMatchingInput(this,'defaultMonth').value)
                                     +'&dayValue='+escape(Form.findMatchingInput(this,'defaultDay').value)"
      ----
      
      == Legacy checkUrl
      Line: 56
      ----
      checkUrl="'/MetadataChecks/checkDateValue?yearValue='+escape(Form.findMatchingInput(this,'defaultYear').value)
                                     +'&monthValue='+escape(Form.findMatchingInput(this,'defaultMonth').value)
                                     +'&dayValue='+escape(Form.findMatchingInput(this,'defaultDay').value)"
      ----
      
      == Legacy checkUrl
      Line: 66
      ----
      checkUrl="'/MetadataChecks/checkDateValue?yearValue='+escape(Form.findMatchingInput(this,'defaultYear').value)
                                     +'&monthValue='+escape(Form.findMatchingInput(this,'defaultMonth').value)
                                     +'&dayValue='+escape(Form.findMatchingInput(this,'defaultDay').value)"
      ----
      
      == Legacy checkUrl
      Line: 87
      ----
      checkUrl="'/MetadataChecks/checkTimeValue?hourValue='+escape(Form.findMatchingInput(this,'defaultHour').value)
                                             +'&minuteValue='+escape(Form.findMatchingInput(this,'defaultMinute').value)
                                             +'&secondValue='+escape(Form.findMatchingInput(this,'defaultSecond').value)"
      ----
      
      == Legacy checkUrl
      Line: 97
      ----
      checkUrl="'/MetadataChecks/checkTimeValue?hourValue='+escape(Form.findMatchingInput(this,'defaultHour').value)
                                             +'&minuteValue='+escape(Form.findMatchingInput(this,'defaultMinute').value)
                                             +'&secondValue='+escape(Form.findMatchingInput(this,'defaultSecond').value)"
      ----
      
      == Legacy checkUrl
      Line: 107
      ----
      checkUrl="'/MetadataChecks/checkTimeValue?hourValue='+escape(Form.findMatchingInput(this,'defaultHour').value)
                                             +'&minuteValue='+escape(Form.findMatchingInput(this,'defaultMinute').value)
                                             +'&secondValue='+escape(Form.findMatchingInput(this,'defaultSecond').value)"
      ----
      

      Solution

      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: