Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-246

Incompatibility railo/mach-ii/layout manager resulting in wrong view output returned

    Details

    • Affects:
      Compatibility/Configuration

      Description

      Using the given combination I've seen several times that the wrong output is delivered upon calling a page, hello.world.1 will often return nothing and hello.world.2 will return the output of hello.world.1 or even the output of both view files (see screenshots attached). The layoutManager.cfc seems to be pretty simple and I've not been able to track a bug there (especially because I'm setting disableLayoutManager so no further interaction with this component takes place).

      I'm not sure if this is an mach-ii bug or a railo bug. In adobe CF8 I don't see this bug at all, so it might be an engine problem /compatibility issue.

      Setup railo + mach-ii + the layout Manager

      Create 2 event-handlers in mach-ii.xml:

      <event-handler event="hello.world.1" access="public">
      <event-arg name="disableLayoutManager" value="true" />
      <view-page name="hello.world.1" />
      </event-handler>

      <event-handler event="hello.world.2" access="public">
      <event-arg name="disableLayoutManager" value="true" />
      <view-page name="hello.world.2" />
      </event-handler>

      two output files:

      hello.world.1.cfm / .2.cfm
      THIS IS HELLO WORLD 1/2
      <cfoutput>#event.getArg( 'world' )#</cfoutput>

      Simple AJAX calls:
      $.get("/james/?event=hello.world.1",

      { world : 1, rand: Math.random() }

      , function(data)

      { alert( 'hello world 1: ' + data ); }

      );

      $.get("/james/?event=hello.world.2",

      { world: 2, rand: Math.random() }

      , function(data)

      { alert( 'hello world 2: ' + data ); }

      );

        Gliffy Diagrams

          Attachments

          1. Bild 1.png
            Bild 1.png
            27 kB
          2. Bild 2.png
            Bild 2.png
            35 kB

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                funkymusic Hansjoerg Posch
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: