History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRA-14827
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Tokar [Atlassian]
Reporter: Jed Wesley-Smith [Atlassian]
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JIRA

$comment.roleLevel is not a valid reference errors in logs

Created: 17/Apr/08 12:35 AM   Updated: 18/Apr/08 12:08 AM
Component/s: Web interface, Plugins - Issue Views, Plugins - Issue Navigator Views
Affects Version/s: 3.12.3
Fix Version/s: 3.12.3

Time Tracking:
Not Specified

Environment: JAC

Participants: Anton Mazkovoi [Atlassian], Jed Wesley-Smith [Atlassian] and Michael Tokar [Atlassian]
Since last comment: 13 weeks, 1 day ago
Resolution Date: 18/Apr/08 12:08 AM
Labels:


 Description  « Hide
After deploying 3.12.3 to JAC we have noticed the following in the logs:
2008-04-16 23:23:40,012 resin-tcp-connection-j2ee.jira.atlassian.com:8080-37 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: reference : template = templates/plugins/issueviews/single-word.vm [line 437,column 91
] : $textutils.htmlEncode($comment.roleLevel) is not a valid reference.
        at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:277)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
        at org.apache.velocity.runtime.parser.node.ASTElseIfStatement.render(ASTElseIfStatement.java:78)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:89)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
        at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
        at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
        at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
        at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
        at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
        at org.apache.velocity.Template.merge(Template.java:256)
        at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
        at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)
        at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)
        at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:55)
        at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:95)
        at com.atlassian.jira.issue.views.AbstractIssueHtmlView.getBody(AbstractIssueHtmlView.java:95)
        at com.atlassian.jira.issue.views.SearchRequestRSSView$1.writeIssue(SearchRequestRSSView.java:75)
        at com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil$1.writeIssue(SearchRequestViewBodyWriterUtil.java:57)
        at com.atlassian.jira.issue.views.util.IssueWriterHitCollector.collect(IssueWriterHitCollector.java:30)
        at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:128)
        at com.atlassian.jira.issue.views.util.SearchRequestViewBodyWriterUtil.writeBody(SearchRequestViewBodyWriterUtil.java:61)
        at com.atlassian.jira.issue.views.SearchRequestRSSView.writeSearchResults(SearchRequestRSSView.java:85)
        at com.atlassian.jira.plugin.searchrequestview.SearchRequestURLHandler.handleRequest(SearchRequestURLHandler.java:244)
        at com.atlassian.jira.web.servlet.SearchRequestViewServlet.doGet(SearchRequestViewServlet.java:27)

Need to investigate cause/symptoms and fix.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] - 17/Apr/08 09:57 PM
The problem was that we were passing a ProjectRole object to TextUtils.htemlEncode. This was a result of fixing JRA-14541.

Jed Wesley-Smith [Atlassian] - 17/Apr/08 10:01 PM
We re-built 3.12.3 so this hasn't shipped.