Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.3.5
-
None
Description
invoke_with_call_chain currently does
begin
old_chain, Thread.current[:rake_chain] = Thread.current[:rake_chain], new_chain
execute(task_args) if needed?
ensure
Thread.current[:rake_chain] = nil
end
The ensure block restores the call chain incorrectly. The call chain should be restored to old_chain rather than nil.
Attached spec reproduces the issue.