Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-216

Thread safety fault in Directives when Template caching on

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.3.1
    • 1.5
    • Engine
    • None
    • Operating System: All
      Platform: All
    • 24115

    Description

      When the template caching is on, concurrent thread may used at the same time
      the same compiled template.
      As Directives are not designed to be stateless it may produce funny effect.
      Example: #foreach

      T1: #foreach ... | ... | ... | ... |
      c=0 c=1 c=0 c=1 c=2 c=3 c=4
      T2: #foreach... | ... |
      --------|-----------|---|---|---|---|---|------>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            geoffrey.picron@dad.be Geoffrey Picron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment