Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-1795

Using a url to browse for a user or author that does not exist results in freemarker errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.2.1
    • 1.2.3
    • Telemetry / Reporting
    • None

    Description

      If you access a user or author that doesn't exist via the url
      eg. http://localhost:8085/browse/user/john
      http://localhost:8085/browse/author/john

      A lovely red and yellow screen shows with freemarker errors.

      User Error:

      Error executing macro: getUserFullName
      required parameter: user is not specified.
      The problematic instruction:
      ----------
      ==> macro getUserFullName [on line 9, column 1 in lib/functions.ftl]
       in user-directive ui.header [on line 3, column 16 in admin/user/profile.ftl]
      ----------
      
      Java backtrace for programmers:
      ----------
      freemarker.template.TemplateException: Error executing macro: getUserFullName
      required parameter: user is not specified.

      Author Error

      
      PExpression author is undefined on line 7, column 52 in author/viewAuthor.ftl.
      The problematic instruction:
      ----------
      ==> ${author.name} [on line 7, column 50 in author/viewAuthor.ftl]
       in user-directive ui.header [on line 7, column 5 in author/viewAuthor.ftl]
      ----------
      
      Java backtrace for programmers:
      ----------
      freemarker.core.InvalidReferenceException: Expression author is undefined on line 7, column 52 in author/viewAuthor.ftl.
      	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
      
      
      

      Attachments

        Activity

          People

            bmccoy bmccoy
            bmccoy bmccoy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: