Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #345 from erezvani1529/master
Browse files Browse the repository at this point in the history
Workaround for buggy stream implementations. Will no longer crash the AppDomain
  • Loading branch information
erezvani1529 authored Sep 19, 2016
2 parents 68c3ee5 + 833453b commit 70ce908
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 31 deletions.
6 changes: 3 additions & 3 deletions Lib/AspNet/Microsoft.WindowsAzure.Storage/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyInformationalVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: AssemblyInformationalVersion("7.2.1.0")]

[assembly: InternalsVisibleTo(
"Microsoft.WindowsAzure.Storage.Test, PublicKey=" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8.3">
<id>WindowsAzure.Storage</id>
<version>7.2.0</version>
<version>7.2.1</version>
<title>Windows Azure Storage</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
Expand Down
2 changes: 1 addition & 1 deletion Lib/AspNet/Microsoft.WindowsAzure.Storage/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "7.2.0.0",
"version": "7.2.1.0",
"authors": [ "Microsoft Corporation" ],
"description": "Azure Storage SDK for CoreCLR Preview",
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions Lib/ClassLibraryCommon/Core/Util/AsyncStreamCopier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,15 @@ private void EndOpWithCatch(IAsyncResult res)
}
catch (Exception ex)
{
if (this.state == null)
{
// This should not be possible unless there is a bug in one of the streams being copied to/from (which
// has been known to happen.)
// If the state is null, the below line will throw a NullPointerException. Because it's unhandled and in
// a threadpool thread, it can crash the AppDomain.
return;
}

if (this.state.ReqTimedOut)
{
this.exceptionRef = Exceptions.GenerateTimeoutException(this.state.Cmd != null ? this.state.Cmd.CurrentResult : null, ex);
Expand Down
2 changes: 1 addition & 1 deletion Lib/Common/Shared/Protocol/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ static HeaderConstants()
/// <summary>
/// Specifies the value to use for UserAgent header.
/// </summary>
public const string UserAgentProductVersion = "7.2.0";
public const string UserAgentProductVersion = "7.2.1";

/// <summary>
/// Master Microsoft Azure Storage header prefix.
Expand Down
4 changes: 2 additions & 2 deletions Lib/WindowsDesktop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]

#if SIGN
[assembly: InternalsVisibleTo(
Expand Down
2 changes: 1 addition & 1 deletion Lib/WindowsDesktop/WindowsAzure.Storage.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8.3">
<id>WindowsAzure.Storage</id>
<version>7.2.0</version>
<version>7.2.1</version>
<title>Windows Azure Storage</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
Expand Down
4 changes: 2 additions & 2 deletions Lib/WindowsPhone/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]

#if SIGN
Expand Down
4 changes: 2 additions & 2 deletions Lib/WindowsPhoneRT/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
[assembly: ComVisible(false)]

Expand Down
4 changes: 2 additions & 2 deletions Lib/WindowsRuntime/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]

[assembly: ComVisible(false)]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Microsoft Azure Storage SDK for .NET (7.2.0)
# Microsoft Azure Storage SDK for .NET (7.2.1)

The Microsoft Azure Storage SDK for .NET allows you to build Azure applications
that take advantage of scalable cloud computing resources.
Expand Down
4 changes: 2 additions & 2 deletions Test/AspNet/Microsoft.WindowsAzure.Storage.Test/project.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": "7.2.0.0",
"version": "7.2.1.0",
"testRunner": "xunit",

"dependencies": {
"xunit": "2.1.0",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"Microsoft.WindowsAzure.Storage": "7.2.0.0-*",
"Microsoft.WindowsAzure.Storage": "7.2.1.0-*",
"XUnitForMsTest": "1.0.0-*"
},

Expand Down
4 changes: 2 additions & 2 deletions Test/WindowsDesktop/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
4 changes: 2 additions & 2 deletions Test/WindowsPhone/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
4 changes: 2 additions & 2 deletions Test/WindowsPhone81/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
4 changes: 2 additions & 2 deletions Test/WindowsPhoneRT.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: ComVisible(false)]
4 changes: 2 additions & 2 deletions Test/WindowsRuntime/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("7.2.0.0")]
[assembly: AssemblyFileVersion("7.2.0.0")]
[assembly: AssemblyVersion("7.2.1.0")]
[assembly: AssemblyFileVersion("7.2.1.0")]
[assembly: ComVisible(false)]
10 changes: 7 additions & 3 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
Changes in 7.2.1 :

- All: Changes error handling in the case where Streams that are passed into the library have a specific bug. This case will no longer crash the AppDomain.

Changes in 7.2.0 :

- All (CoreCLR): NetStandard target framework changed to netstandard1.3
- All (PCL): Removed support for PCL in favor of NetStandard GA release
- Table (CoreCLR) : Added a workaround for missing GetProperties method on TypeInfo in reflection-based Read/Write methods in TableEntity after change to netstandard11.3 TFM
- Table (CoreCLR) : Added logic to wrap the error stream in a noncloseable stream to prevent it from being disposed by ODataMessageReader
- Table (CoreCLR): Added a workaround for missing GetProperties method on TypeInfo in reflection-based Read/Write methods in TableEntity after change to netstandard11.3 TFM
- Table (CoreCLR): Added logic to wrap the error stream in a noncloseable stream to prevent it from being disposed by ODataMessageReader

Changes in 7.1.3-preview :

- All : CoreCLR projects were updated to use the RTM release of .Net Core 1.0
- All: CoreCLR projects were updated to use the RTM release of .Net Core 1.0

Changes in 7.1.2 :

Expand Down

0 comments on commit 70ce908

Please sign in to comment.