[Perl-workflow-devel] Cached condition bugfix
Brought to you by:
jonasbn
|
From: Alexander K. <ak-...@cy...> - 2007-06-28 14:27:01
|
Hi Jonas,
Hi all,
I've just checked in a bugfix for the cached condition handling.
In OpenXPKI, under mysterious circumstances, we ran into a race
condition where a workflow checked the state of its forked child
and the result of the checking condition and its inverse (using the
'!'-syntax) where either both true or both false sometimes.
This is the same race that was to be prevented by implementing the
'!'-syntax in the first place. Apparently, my fix that cleared
the condition cache so that circular workflows would not run forever
reintroduced the race again :-(
The fix now resets the condition cache on state changes and when
get_available_action_names() is called and introduces corresponding
tests.
Jonas: a quick maintenance release incorporating the patch would be
highly appreciated ...
Best regards,
Alex
P.S.: Sorry to hear about EBADCONTRACT :-(
--
Dipl.-Math. Alexander Klink | IT-Security Engineer
ak-...@cy... | working @ urn:oid:1.3.6.1.4.1.11417
|