>_
.issue.db
/highway-workflow-engine
Dashboard
Issues
Memory
Lessons
Audit Log
New Issue
Edit Issue #465
Update issue details
Title *
Description
Two files have Time-Of-Check-Time-Of-Use (TOCTOU) race conditions in _should_clear_cache(): 1. engine/tools/http_request.py:224-231 2. engine/tools/shell_command.py:119-127 Pattern: ```python if not os.path.exists(flag_file): # CHECK return False mtime = os.path.getmtime(flag_file) # ACT - file may be deleted between check and use ``` Another thread/process can delete the file between exists() and getmtime(), causing FileNotFoundError. FIX: Use try/except around file operations instead of check-then-act pattern.
Priority
Low
Medium
High
Critical
Status
Open
In Progress
Closed
Won't Do
Due Date (YYYY-MM-DD)
Tags (comma separated)
Related Issues (IDs)
Enter IDs of issues related to this one. They will be linked as 'related'.
Update Issue
Cancel