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

support-core creates invalid / incorrect markdown files due to lack of escaping markdown in plain text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • support-core-plugin
    • None

      support-core plugin can create incorrect / invalid markdown files as it takes data in plain text and adds it to markdown files.

      However the data from jenkisn in plain text may contain markdown characters.

      this is the case for the update center - if there is a proxy in use the non proxy hosts can be of the format *.domain.com but this results in that being added verbatim into the update-center.md file, which results in the single * which is not valid.

      e.g. non proxy hosts of *.cluster.local|*.example.com will result in the following in the markdown file

       - No Proxy Hosts: 
       * *.cluster.local
       * *.example.com
      

      the markdown in the hostname should be escaped so that it is actually

       - No Proxy Hosts: 
       * \*.cluster.local
       * \*.example.com
      

      https://github.com/jenkinsci/support-core-plugin/blob/1b50a0dfbe22352b117de282bcbd707b8b9bad40/src/main/java/com/cloudbees/jenkins/support/impl/UpdateCenter.java#L77 for one concrete example.

            allan_burdajewicz Allan BURDAJEWICZ
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: