Skip to content
Browse files

[FIXED JENKINS-17724] /about was not showing licenses.

A recent Stapler update caused the Jelly facet to ignore *.xml.
So need to use raw j:include (as plugins were doing), not st:include (as core did).(cherry picked from commit 0bf4348)

  • Loading branch information...
jglick authored and vjuranek committed Apr 23, 2013
1 parent 3662fb1 commit 45699fed47c0b1f1154296d7cba44c852b7df3d1
@@ -61,6 +61,9 @@
<li class=bug>
<code>StringIndexOutOfBoundsException</code> in <code>PackageResult.findCorrespondingResult</code>.
(<a href="">issue 17721</a>)
<li class=bug>
Third-party license display for core was broken since 1.506.
(<a href="">issue 17724</a>)

@@ -1,6 +1,9 @@
package hudson;

import hudson.model.ManagementLink;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;

* Show "About Jenkins" link.
@@ -27,4 +30,10 @@ public String getDisplayName() {
public String getDescription() {
return Messages.AboutJenkins_Description();

public URL getLicensesURL() {
return AboutJenkins.class.getResource("/META-INF/licenses.xml");

@@ -35,9 +35,34 @@ THE SOFTWARE.
<st:include page="/META-INF/licenses.xml" optional="true" />
<j:set var="uri" value="${it.licensesURL}"/>
<j:when test="${uri != null}">
<j:include uri="${uri}"/>
<p>${%No information recorded}</p>
<j:forEach var="p" items="${app.pluginManager.plugins}"> <!-- XXX sort -->
<a href="${rootURL}/pluginManager/plugin/${p.shortName}/thirdPartyLicenses">
<j:when test="${}">

2 comments on commit 45699fe


This comment has been minimized.

Copy link
Member Author

replied May 17, 2013

@vjuranek: the first block is actually the bug fix; the second block is a new feature introduced in a separate trunk commit. Not sure if you intended to cherry-pick both.


This comment has been minimized.

Copy link

replied May 17, 2013

@jglick: thanks for spotting it! Of course this wasn't intended, I wrongly resolved merge conflict. Fixed in 6767bad

Please sign in to comment.
You can’t perform that action at this time.