#608: Caching leaves room for potential race condition
------------------------------------------------------------+---------------
Reporter: Felix Gilcher <[EMAIL PROTECTED]> | Owner: david
Type: defect | Status: new
Priority: normal | Milestone:
0.11
Component: filter | Version:
HEAD
Severity: normal | Keywords:
AgaviExecutionFilter Cache Race Condition
------------------------------------------------------------+---------------
Currently, the AgaviExecution filter calls checkCache() to see wether an
action has been cached and then readCache() to retrieve the cached values.
However, no checking is done on the return value of readCache() so that in
multithreaded environements a clearCache() call from another thread might
happen inbetween the check and the read, leading to an error.
Solution: check the result of the readCache operation and act accordingly
(if fail, treat action as not cached).
--
Ticket URL: <http://trac.agavi.org/ticket/608>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets