Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Unzipping .zip archive downloaded from Visual Studio Online results in System.IOException

$
0
0

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



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>