Force button does not work when using the new categories in farmreport (Bug #215)

Added by Aldus Monitor over 5 years ago. Updated almost 5 years ago.

Status:Closed Start date:10/12/2012
Priority:Normal Due date:
Assignee:Ruben Willems % Done:


Category:WebDashboard Spent time: -
Target version:1.8.4
Affected version:1.8.2


Force button does not work when using the new categories farmreport. The buttons are shown if the BuildServer has new enough version but nothing happens when you press the buttons.
Possible the start/stop/abort button have the same problem.

Configuration for the problem to occur (in Dashboard.config):

      <!-- Update this list to include all the servers you want to connect to. NB - each server name must be unique -->
      <server name="MyBuildServer1" url="tcp://MyBuildServer1:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" />
      <server name="MyBuildServer2" url="tcp://MyBuildServer2:21234/CruiseManager.rem" allowForceBuild="true" allowStartStopBuild="true" />
      <farmReportFarmPlugin categories="true" refreshInterval="30" successBar="Bottom" />
      <cctrayDownloadPlugin />
      <administrationPlugin password="XYZ123"></administrationPlugin>

Aditional feature:
  • Enable sorting within each category through header click. It is acceptable that this sorting sorts all categories at once.

215CategorizationFix.diff (6 kB) Paul Martin, 05/02/2013 03:12 pm


Updated by Ruben Willems over 5 years ago

  • Target version deleted (1.8.3)

Updated by Aldus Monitor over 5 years ago

I would really like to see a fix to this in version 1.8.4.
Seams like something simple to fix?

Updated by Aldus Monitor over 5 years ago


This problem really is an big annoyance. Lots of persons in different teams keeps reporting that the build is failing just because the force button is not working.

Updated by Paul Martin about 5 years ago

The problem seems to be that when you use categories="true" the dashboard uses a completely different "Farm Report Farm" plugin and template from when it is set to false.
The template (CategorizedFarmReport.vm) is missing the parameter check dialog and javascript, and the plugin (CategorixedFarmReportFarmPlugin) does not check the request parameters to see if the Force/Start/Stop/Abort buttons have been clicked.

The quick fix is to turn categories off (categories="false") as the standard farm view works fine.
I did a fix for myself for which I have attached the patch, but I haven't particularly tested it beyond checking it fixes the issue for myself.

Updated by Aldus Monitor about 5 years ago

Paul: I only took a quick look at the code and it looks ok to me. I bet a diff with the code of the "normal" webpage shows if your code is similar. Best would be some kind of base class that both uses so all features are exactly the same.
Only admins can change the header of the issue otherwise I would change it to 1.8.4 and vote to apply your patch.


Updated by Ruben Willems almost 5 years ago

  • Assignee set to Ruben Willems
  • Target version set to 1.8.4

Updated by Ruben Willems almost 5 years ago

  • Status changed from New to Closed

Also available in: Atom PDF