Freemarker invalid reference when looking at project summary (with multiple plans with comments)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.7 rc1, 2.7
    • Affects Version/s: None
    • Component/s: User Interface
    • None

      When I click on Project summary page (like the one under link similar to: http://localhost:8085/bamboo/browse/ZZ ) I've got nasty freemarker exceptions instead of comments.

      The project has to have at least two plans, I reckon both must have been started and filled with build results.

      Exact message:

      Expression action.planResultHasComments is undefined on line 581, column 10 in lib/components.ftl.
      The problematic instruction:
      ----------
      ==> if action.planResultHasComments(buildResultsSummary) [on line 581, column 5 in lib/components.ftl]
       in user-directive cp.commentIndicator [on line 282, column 13 in fragments/plan/displayWideBuildPlansList.ftl]
       in user-directive planList.displayWideBuildPlansList [on line 12, column 1 in project/viewProject.ftl]
      ----------
      
      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: Expression action.planResultHasComments is undefined on line 581, column 10 in lib/components.ftl.
      	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
      	at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
      

      etc etc...

      I think the problem was introduced with the following changeset:

      o  changeset:   11124:99a2455c7b04
      |  user:        mgardias@d2a7a951-c712-0410-832a-9abccabd3052
      |  date:        Wed Oct 27 08:31:17 2010 +0000
      |  summary:     BAM-7173 - Comments on jobs don't show up in the main dashboard only comments on plans
      

      I think it is r131465...

      Marcin, could take a look at this?

            Assignee:
            Marcin Gardias
            Reporter:
            PiotrA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: