You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIXED JENKINS-19310] Provide correct links for build history inside a folder.
The basic fix is to use ${rootURL} plus full model object URLs rather than relying on ${jobBaseUrl}.
This is made trickier by the fact that the model object URLs are computed inside ProgressiveRendering.compute,
and therefore will not be correct when nondefault views are in the crumb trail unless the original request information is present.
So modifying ProgressiveRendering to preserve a copy of the original request for use during computation.
(This could probably be used to simplify parts of AsynchPeople as well.)
Also improving AbstractItem.getUrl to properly construct a URL including views even when the current page is not inside the item;
it should suffice for some ancestor of the current item (or a view thereof) to be in the ancestor list of this page.
LOG.log(Level.FINE, "{0} finished in {1}msec with status {2}", newObject[] {uri, System.currentTimeMillis() - start, status});
102
116
}
103
117
}
104
118
});
105
119
}
106
120
121
+
/**
122
+
* Copies important fields from the current HTTP request and makes them available during {@link #compute}.
123
+
* This is necessary because some model methods such as {@link AbstractItem#getUrl} behave differently when called from a request.
124
+
*/
125
+
@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) // public RequestImpl ctor requires List<AncestorImpl> yet AncestorImpl is not public! API design flaw
0 commit comments