Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.7 Beta 2
-
Unexploded WAR on Windows
-
3.07
-
Description
Assembling the path to a velocity macro using the file-system specific separator fails on Windows when the velocity template is in a WAR. We need to load it using a URL and the URL syntax is always forward-slash ( / ), back-slash ( \ ) makes it fail.
The effect of this is that the comment or worklog issue tab panels fail to load if there are no comments or work logs. A message "Velocity template generation failed." is printed instead. First seen on WebLogic 8.1 SP4 and SP6.
An example stacktrace from Weblogic 8.1 SP6 running JIRA 3.6.5:
2007-02-02 18:41:27,797 ERROR [velocity] ResourceManager : unable to find resource 'templates\jira\issue\action\comment.vm' in any resource loader.
2007-02-02 18:41:27,797 ERROR [com.atlassian.velocity.DefaultVelocityManager] ResourceNotFoundException occurred whilst loading resource issue\action\comment.vm
Also affects UserMailQueuItem, ReleaseNoteManager, MailFetcherService and DefaultTemplateManager classes.
Attachments
Issue Links
- incorporates
-
JRASERVER-3504 Cannot view comments
- Closed
-
JRASERVER-3671 MailException: Could not find template
- Closed
-
JRASERVER-3788 Mail sits in mail queue and not sent
- Closed
-
JRASERVER-3995 Mail sending fails with packed webapp: Could not find template
- Closed
-
JRASERVER-4108 Velocity template generation failed
- Closed
-
JRASERVER-3558 Velocity template generation failed
- Closed
- is related to
-
JRASERVER-12652 System specific file separator is used for send support request e-mail template
- Closed