-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Platform: All, OS: All
Say I am keeping ten builds of a project active. Right now #70 is done and #71
is building. If I go to
there is a "Previous Build" link pointing to
But if I click on it I get
---%<---
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/5.5.17
---%<---
Hudson should not link to a nonexistent page.
The code does check for non-existent build. See
<c:if test="${it.previousBuild!=null}">
<l:task icon="images/24x24/previous.gif"
href="${buildUrl.previousBuildUrl}" title="Previous Build" />
</c:if>
<c:if test="${it.nextBuild!=null}">
<l:task icon="images/24x24/next.gif" href="${buildUrl.nextBuildUrl}"
title="Next Build" />
</c:if>
The problem is that sometimes:
1. user loads a page. This generates to the link to #59, which exists
2. while the user is looking at the page, more builds happen, and #59
gets eliminated.
3. the user clicks the page, trying to load #59
4. 404 error happens
I don't think we can fix this.
Maybe what you are saying is that we want a little more human friendly error
page for a certain common kind of 404 like this?