Issue Details (XML | Word | Printable)

Key: PERF-125
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Andreas Knecht [Atlassian]
Reporter: Mark Michaelis
Votes: 0
Watchers: 1
Operations

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

$req.contextPath is not a valid reference reported for view-jobcheckbox.vm

Created: 26/Jul/07 02:39 AM   Updated: 29/Jul/07 07:11 PM
Component/s: None
Affects Version/s: 1.1.10
Fix Version/s: 1.1.12

Time Tracking:
Not Specified

Participants: Andreas Knecht [Atlassian] and Mark Michaelis
Since last comment: 1 year, 10 weeks, 6 days ago
Resolution Date: 29/Jul/07 07:11 PM
Labels:


 Description  « Hide
The following exception is flooding the JIRA log:
2007-07-26 03:14:34,293 http-127.0.0.1-9443-Processor19 WARN [velocity] org.apache.velocity.runtime.exception.ReferenceException: ref
erence : template = templates/plugins/perforce/customfields/view-jobcheckbox.vm [line 2,column 48] : ${req.contextPath} is not a vali
d 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.ASTIfStatement.render(ASTIfStatement.java:70)
        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:90)
        at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getViewHtmlByValue(CustomFieldTypeModuleDescriptor.j
ava:177)
        at com.atlassian.jira.plugin.customfield.CustomFieldTypeModuleDescriptor.getViewHtml(CustomFieldTypeModuleDescriptor.java:143
)
        at com.atlassian.jira.issue.fields.CustomFieldImpl.getViewHtml(CustomFieldImpl.java:818)
        at com.atlassian.jira.issue.fields.CustomFieldImpl.getViewHtml(CustomFieldImpl.java:813)
        at com.atlassian.jira.issue.views.AbstractIssueHtmlView.getCustomFieldHtml(AbstractIssueHtmlView.java:145)

According to JRA-11669 req.contextPath should be replaced by requestContext.baseUrl.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andreas Knecht [Atlassian] added a comment - 29/Jul/07 07:11 PM
All references to req have now been replaced with the proper requestContext variable.