Hi,
I am testing the Visual Studio Online GIT APIs, but when I try to unzip a .zip file using ZipFile.ExtractToDirectory(zipFileName, destination), it always throws this exception:
Exception Details: System.IO.IOException: Extracting Zip entry would have resulted in a file outside the specified destination directory.
The entries in my ZipArchive are:
- /AzureTest/
- AzureTest/AzurePlay.sln
Is this a bug in how VS Online is sending me the ZipArchive data? I can unzip it fine from the UI.
This is the request I am sending:
https://sources.visualstudio.com/DefaultCollection/_apis/projects/74050dd2-3164-4653-9402-236ee13cb7cd/items?scopePath=/
Thanks,
Connie