You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified this is the correct repository for opening this issue.
I have verified no other issues exist related to my problem.
I have verified this is not an issue for a specific package.
I have verified this issue is not security related.
What You Are Seeing?
On a client system with the latest code we are working against allows a backup folder to be deleted if it contains a file that has been read and delete locked, even if that file was moved from a different location.
On a server it is not possible to delete this file when it is read and delete locked, it is still allowed to be moved to any new location.
What is Expected?
The expectation is that behavior is consistent, and it will be removed on both client and server or kept on both.
How Did You Get This To Happen?
Install the package upgradepackage version 1.0.0.
Lock a file in the directory using $LockedFile = [System.IO.File]::Open("C:\ProgramData\chocolatey\lib\upgradepackage\tools\chocolateyInstall.ps1", "OpenOrCreate", "ReadWrite", "Read,Delete").
Upgrade the package upgradepackage (ignore any warnings).
Verify whether the directory lib-bkp\upgradepackage\1.0.0 exist or not (will not exist on client systems, but exist on server systems).
System Details
Operating System: Windows 10 and Windows 2019
Windows PowerShell version: 5.1.19041.2673 (Server: 5.1.17763.1852)
Checklist
What You Are Seeing?
On a client system with the latest code we are working against allows a backup folder to be deleted if it contains a file that has been read and delete locked, even if that file was moved from a different location.
On a server it is not possible to delete this file when it is read and delete locked, it is still allowed to be moved to any new location.
What is Expected?
The expectation is that behavior is consistent, and it will be removed on both client and server or kept on both.
How Did You Get This To Happen?
upgradepackage
version1.0.0
.$LockedFile = [System.IO.File]::Open("C:\ProgramData\chocolatey\lib\upgradepackage\tools\chocolateyInstall.ps1", "OpenOrCreate", "ReadWrite", "Read,Delete")
.upgradepackage
(ignore any warnings).lib-bkp\upgradepackage\1.0.0
exist or not (will not exist on client systems, but exist on server systems).System Details
Installed Packages
Output Log
Additional Context
The included log includes the full log from upgrading 1.2.1 until the end of the v2 testing.
The text was updated successfully, but these errors were encountered: