Skip to content

Permissions issues with PrivateJsonFile on windows #198

Closed
@soxofaan

Description

@soxofaan

Windows does not support fine grained linux style permission chmoding, causing perrmission issues like

File "D:\tmp\env\lib\site-packages\openeo\rest\auth\config.py", line 85, in _write
    assert_private_file(self._path)
  File "D:\tmp\env\lib\site-packages\openeo\rest\auth\config.py", line 30, in assert_private_file
    p=path, a=mode, e=_PRIVATE_PERMS)
PermissionError: File C:\Users\john\AppData\Local\Temp\win-perms-test.json is readable by others: st_mode 100666 (expected permissions: 600).```

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions