[NAS-2489] History/Harveststatus-running-jobdetails.jsp?jobID=10 has a link that points back to itself Created: 21/Jan/16  Updated: 02/Nov/16  Resolved: 19/Oct/16

Status: Resolved
Project: NetarchiveSuite
Component/s: GUI
Affects Version/s: 5.1
Fix Version/s: 5.2

Type: Bug Priority: Minor
Reporter: Søren Vejrup Carlsen (Inactive) Assignee: Unassigned
Resolution: Fixed  
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: NAS 5.2
Verification:

Staredt a harvest and checked the html.


 Description   

The HTML code looks like this:

 <li>
	           <a href="" target="_blank">
                       Display
                       </a> the Heritrix console (host: <a href="" target="_blank">
	                   
	                   </a>)
	       </li>
	       <!-- Link to job definition page -->
	       <li>
	           <a href="Harveststatus-jobdetails.jsp?jobID=10">
	                    Display
	                    </a> the job definition
           </li>

So the link is in fact the empty string



 Comments   
Comment by Nicholas Clarke (Inactive) [ 02/Nov/16 ]

It is null before the h3 host is known and valid after the h3 host is known.
So the link should not be shown before the h3 host is known.

Comment by Søren Vejrup Carlsen (Inactive) [ 21/Jan/16 ]

The code to blame is the following

StartedJobInfo latest =
        HarvestMonitor.getMostRecentRunningJobInfo(jobID);
....
<td colspan="2"><ul>
               <!-- Link to Heritrix console -->
               <li>
                   <fmt:message key="running.job.details.heritrixConsoleLink">
                       <fmt:param>
                       <a href="<%=latest.getHostUrl()%>" target="_blank">
                       <fmt:message key="running.job.details.display"/>
                       </a>
                   </fmt:param>
                       <fmt:param>
                           <a href="<%=latest.getHostUrl()%>" target="_blank">
                           <%=latest.getHostName()%>
                           </a>
                       </fmt:param>
                   </fmt:message>
               </li>
               <!-- Link to job definition page -->
               <li>
                   <fmt:message key="running.job.details.jobDefinitionLink">
                        <fmt:param>
                            <a href="Harveststatus-jobdetails.jsp?jobID=<%= jobID %>">
                            <fmt:message key="running.job.details.display"/>
                            </a>
                        </fmt:param>
                   </fmt:message>
           </li>
Generated at Wed May 08 17:08:01 CEST 2024 using Jira 9.4.15#940015-sha1:bdaa9cbecfb6791ea579749728cab771f0dfe90b.