[ http://issues.apache.org/jira/browse/VELOCITY-24?page=all ]
Henning Schmiedehausen updated VELOCITY-24:
-------------------------------------------
Bugzilla Id: (was: 4483)
Affects Version/s: 1.5 beta1
(was: 1.1-rc2)
Priority: Blocker (was: Major)
Issue is trivially reproducable using ab -c 2 -n 8
http://localhost:8080/testbed/templates/issues/velocity-24.vm
There definitely is a race condition somewhere in the Velocity engine that
should be fixed for 1.5. Raising prio to blocker for 1.5.
> calls to local macros not always made when template caching is off
> ------------------------------------------------------------------
>
> Key: VELOCITY-24
> URL: http://issues.apache.org/jira/browse/VELOCITY-24
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.5 beta1
> Environment: Operating System: other
> Platform: Other
> Reporter: peterwlynch
> Priority: Blocker
> Fix For: 1.5
>
>
> In the latest nightly build Oct 28, 2001 and also in velocity 1.2 rc2 i
> noticed
> the following problem with autoreloading macros.
> Made a simple html page. added a simple one line macro that accepted one
> param,
> a letter
> something like....
> ## local macro, not global
> #macro(letter $char)
> This is the letter $char
> #end
> #letter("A")
> #letter("B")
> #letter("C")
> etc.... to Z
> ------
> The html page would be loaded in response to a form being submitted. If I
> clicked on the submit button five times, quickly ( five separate submits),
> most
> times the final response would out put something like...
> ----
> This is the letter A
> This is the letter B
> This is the letter C
> This is the letter D
> This is the letter E
> #letter #letter #letter
> #letter ......
> This is the letter Z
> As you can see, some macro calls did not get parsed.
> We were just happening to use velocity through turbine, but I don't think
> that
> affects the bug. Besides, the bug went away when the autoreload was false.
> Once scarab's runbox is back up, might be interesting to test this out on
> their
> macros too for comparison, although I don't see that they have any local
> macros.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]