FileSystem specific separator used for Velocity Template selection doesn't work with unexploded WARs on Windows

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 3.7
    • Affects Version/s: 3.7 Beta 2
    • Component/s: Installation
    • Environment:

      Unexploded WAR on Windows

    • 3.07

      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.

            Assignee:
            Dushan Hanuska [Atlassian]
            Reporter:
            Dushan Hanuska [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified