[metadata] Migrate legacy checkUrl attributes in WEB-INF/classes/com/sonyericsson/hudson/plugins/metadata/model/definitions/DateMetadataDefinition/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,'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

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

              Created:
              Updated: