hpcc-systems/HPCC-Platform — pull request #3548 by wangkx (2012-10-18 20:51:22+00:00)
Title: HPCC-8104 Fix duplicated log link and empty log view in ECL WU Details

This fix solves three problems found in the Helpers section of ECL WU
Details page. 1. duplicated log files are displayed; 2. The first
thormaster log is displayed when web link to second thormaster log is
selected from the section; 3. A blank page shows when an EclAgent Log
link is selected from the section. The existing code assumes only one
thormaster log (and one eclagent log) per workunit. When more than one
thormaster log entries occur in WU XML, the entries causes extra loops
to generate duplicated links. The existing links contain process name
as an identifier. When a user clicks one of the links, the code always
picks up the first log file based on the process name. Since no related
log line is found from the first log file, a plank page is displayed.

This fix modifies the code to avoid the extra loops. Inside the web link,
the process name is replaced by log file name. If no related log line
can be found in a log file, the page will display: (Not found a log line
related to this workunit).

Signed-off-by: Kevin Wang