Details
-
Bug
-
Resolution: Fixed
-
Low
-
1.2.3
-
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)