mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-10-09 14:33:21 +02:00
The Windows branch of the CLI state store locks each state file and directory to the current user by running `Get-Acl`, rebuilding the access list, and writing it back with `Set-Acl`. That works the first time, but running it again on a path whose access list is already protected fails for a non-elevated user with `SeSecurityPrivilege` not held. So after the first save, every later load or save raises `StateFileError: Could not restrict access to CLI state`. CI runs elevated and never saw it. The script now reads and writes only the access list, through `GetAccessControl("Access")` and `SetAccessControl`, which a normal user may do on a file they own.
Fixes #5307.
Co-authored-by: asemabdallah <asasem547@gmail.com>
|
||
|---|---|---|
| .. | ||
| test_authentication.py | ||
| test_command.py | ||
| test_configuration.py | ||
| test_credentials.py | ||
| test_horizon_client.py | ||
| test_output.py | ||