-
Bug
-
Resolution: Fixed
-
Minor
-
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
- causes
-
JENKINS-68894 Uploaded folder Icon not shown
-
- Closed
-
- links to
[JENKINS-68639] Malformed URLs for status icons images
Assignee | New: Alina Strohaya [ astrohaya ] |
Description |
Original:
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)
!image-2022-05-30-18-35-27-817.png! Functions.tryGetIconPath() appends the context path to the URL, 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. |
New:
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)
!image-2022-05-30-18-35-27-817.png! Functions.tryGetIconPath() appends the context path to the URL, 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. (hudson.model.StockStatusIcon#22) |
Description |
Original:
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)
!image-2022-05-30-18-35-27-817.png! Functions.tryGetIconPath() appends the context path to the URL, 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. (hudson.model.StockStatusIcon#22) |
New:
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)
!image-2022-05-30-18-35-27-817.png! Functions.tryGetIconPath() appends the context path to the URL (hudson.Functions#2380), 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. (hudson.model.StockStatusIcon#22) |
Description |
Original:
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)
!image-2022-05-30-18-35-27-817.png! Functions.tryGetIconPath() appends the context path to the URL (hudson.Functions#2380), 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. (hudson.model.StockStatusIcon#22) |
New:
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)
!image-2022-05-30-18-35-27-817.png! 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] |
Labels | New: lts-candidate |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR #6616 (Web Link)" [ 27821 ] |
Released As | New: 2.357 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Closed [ 6 ] |
Labels | Original: lts-candidate | New: 2.346.2-fixed |