ID 547588 - [Windows] Nuke will overwrite files which have Read-only permissions set

Follow

Problem summary
Nuke will overwrite files which have Read-only permissions set. This behaviour is only present on Windows.
 
Customer reported version
Nuke 14.0v5
 
Customer reported platform
Windows 10
 
Steps to reproduce
 
1) Open Nuke.
 
2) Save the current script (File > Save Script As...).
 
3) Navigate to the .nk script in Windows File Explorer.
 
4) Right click the file > Properties > enable Read-only option > press OK.
 
5) Back in Nuke, try to overwrite the file (File > Save Comp).
RESULT: An error should be displayed.
 
6) Close and reopen the script.
 
7) Save the script again (File > Save Comp).
RESULT: No error occurs, and the file will be saved successfully.
 
8) Navigate to your .nk script in Windows File explorer. There will be two files named like so:
filename.nk 
filename.nk~
 
9) Check the Read-only settings on each file (right click the file > Properties).
Notice that the filename.nk~ has Read-only permissions, and filename.nk does not.
 
Expected behaviour
Nuke should not be able to overwrite files which have Read-only permissions.
 
Actual behaviour
Nuke will overwrite .nk files which have Read-only permissions set.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Nuke 14.0v5 - Windows 10
Nuke 12.0v1 - Windows 10
Nuke 10.0v1 - Windows 10
 
Unable to reproduce bug in:
Nuke 14.0v5 - Linux CentOS 7 - macOS 12 (Monterey) 
 
Earliest version tested
Nuke 10.0v1 - Windows 10
- This issue appears to be in all tested versions of the product, on Windows only.

    We're sorry to hear that

    Please tell us why