Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-11739

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 3.7
    • 3.7 Beta 2
    • Installation
    • Unexploded WAR on Windows

    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

          Activity

            People

              dushan@atlassian.com Dushan Hanuska [Atlassian]
              dushan@atlassian.com Dushan Hanuska [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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