Uploaded image for project: 'Turbine'
  1. Turbine
  2. TRB-85

Nested Templates output reversed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Core 4.0-M1
    • Core 4.0-M2
    • Core
    • None
    • Windows XP,
      java version "1.6.0_13"
      Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
      Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)
      Tomcat 6.0.18_03

    Description

      Using (nested) calls in screen template the output (of the templates) seems to be reversed, i.e. the latest called templates are outputted first (lifo).
      This may be due to that org.apache.turbine.services.velocity.TurbineVelocityService.handleRequest(Context, String) is implemented such, that each invocation creates a new instance of a java.io.OutputStreamWriter.OutputStreamWriter(OutputStream, String), which velocity then is writing to. May be the exact reason should be investigated in more detail. No test is available at the moment.

      This could be solved by providing a concurrent safe instance variable of OutputStreamWriter to be used in this method (handleRequest).

      Cft. http://mail-archives.apache.org/mod_mbox/turbine-dev/201109.mbox/%3C4E67C58C.5020804@apache.org%3E

      A patch could be attached later ..

      Attachments

        1. TurbineVelocityServices.patch
          2 kB
          Georg Kallidis

        Activity

          People

            gm_kall Georg Kallidis
            gm_kall Georg Kallidis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: