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

Malformed URLs for status icons images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • Jenkins 2.346
    • 2.357, 2.346.2

      The raster image status icons of jobs on the dashboard are expected to display correctly. The actual behavior is icons being missing because the image URLs are malformed, containing the context path twice (/jenkins/jenkins/ on the following screenshot)

      Functions.tryGetIconPath() appends the context path to the URL https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/Functions.java#L2380
      but before that, StatusIcon.getImageOf() will have already appended it for StockStatusIcon and every other extension of StatusIcon that implements that method similarly, resulting in the malformed URL where the context path repeats twice. https://github.com/jenkinsci/jenkins/blob/20e34cb942a85fe1b55bb193ef3378c2eeb82098/core/src/main/java/hudson/model/StockStatusIcon.java#L31-L36

            astrohaya Alina Strohaya
            astrohaya Alina Strohaya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: