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

Commit

Permalink
[9.1.1] Release (#665)
Browse files Browse the repository at this point in the history
* [NET] Fix support for double.Nan, double.PositiveInfinity, double.NegativeInfinity. Expand tests around the various EDM types.

* [NET] Fix case where JSON serialization gets inadvertently overridden

* Adding missing copyright notice

* Fix non-table settings

* Address CR comments, fix bug introduced in 9.0 where doubles were not marked with EdmType when sent to server.

* Remove quotes from normal double values.

* Fix NetCore support of NaN

* Cap language use to C#5

* Further NetCore test fixes

* Remove incorrect project nuget dependency, fix test

* Test fixes

* Revert serializer settings changes for encryption cases

* [9.1.1]Update assembly versions for release

* [9.1.1] Completed the reverts related to encryption SerializerSetting changes
  • Loading branch information
erezvani1529 authored Apr 4, 2018
1 parent e01de1b commit 3331c60
Show file tree
Hide file tree
Showing 27 changed files with 57 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public static class EncryptionConstants
public const string TableEncryptionKeyDetails = "_ClientEncryptionMetadata1";
public const string TableEncryptionPropertyDetails = "_ClientEncryptionMetadata2";
public const string AgentMetadataKey = "EncryptionLibrary";
public const string AgentMetadataValue = ".NET 9.1.0";
public const string AgentMetadataValue = ".NET 9.1.1";
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static class EncryptionConstants
public const string TableEncryptionKeyDetails = "_ClientEncryptionMetadata1";
public const string TableEncryptionPropertyDetails = "_ClientEncryptionMetadata2";
public const string AgentMetadataKey = "EncryptionLibrary";
public const string AgentMetadataValue = ".NET 9.1.0";
public const string AgentMetadataValue = ".NET 9.1.1";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace Microsoft.WindowsAzure.Storage.Shared.Protocol

public static class HeaderConstants
{
public static readonly string UserAgent = "Azure-Storage/9.1.0 ";
public static readonly string UserAgent = "Azure-Storage/9.1.1 ";
public const string UserAgentProductName = "Azure-Storage";
public const string UserAgentProductVersion = "9.1.0";
public const string UserAgentProductVersion = "9.1.1";
public const string PrefixForStorageHeader = "x-ms-";
public const string TrueHeader = "true";
public const string FalseHeader = "false";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.1.0")]

[assembly: InternalsVisibleTo(
"Microsoft.WindowsAzure.Storage.Facade.Portable, PublicKey=" +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Microsoft.WindowsAzure.Storage",
"version": "9.1.0.0",
"version": "9.1.1.0",

"authors": [ "Microsoft Corporation" ],
"description": "Azure Storage SDK for NetCore",
Expand Down
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 @@ -34,9 +34,9 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyInformationalVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.1.0")]
[assembly: AssemblyInformationalVersion("9.1.1.0")]


[assembly: InternalsVisibleTo(
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/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>WindowsAzure.Storage</id>
<version>9.1.0</version>
<version>9.1.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": "9.1.0.0",
"version": "9.1.1.0",

"authors": [ "Microsoft Corporation" ],
"description": "Azure Storage SDK for NetCore",
Expand Down
8 changes: 4 additions & 4 deletions Lib/ClassLibraryCommon/Blob/CloudBlob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public virtual void RotateEncryptionKey(AccessCondition accessCondition = null,
// Update the encryption metadata with the newly wrapped CEK and call SetMetadata.
encryptionData.WrappedContentKey = new WrappedKey(modifiedOptions.EncryptionPolicy.Key.Kid, wrappedKey.encryptedKey, wrappedKey.algorithm);

this.Metadata[Constants.EncryptionConstants.BlobEncryptionData] = Newtonsoft.Json.JsonConvert.SerializeObject(encryptionData, DefaultSerializerSettings.Create());
this.Metadata[Constants.EncryptionConstants.BlobEncryptionData] = Newtonsoft.Json.JsonConvert.SerializeObject(encryptionData, Newtonsoft.Json.Formatting.None);

if (accessCondition == null)
{
Expand Down Expand Up @@ -569,7 +569,7 @@ public virtual async Task RotateEncryptionKeyAsync(AccessCondition accessConditi

encryptionData.WrappedContentKey = new WrappedKey(modifiedOptions.EncryptionPolicy.Key.Kid, wrappedKey.encryptedKey, wrappedKey.algorithm);

this.Metadata[Constants.EncryptionConstants.BlobEncryptionData] = Newtonsoft.Json.JsonConvert.SerializeObject(encryptionData, DefaultSerializerSettings.Create());
this.Metadata[Constants.EncryptionConstants.BlobEncryptionData] = Newtonsoft.Json.JsonConvert.SerializeObject(encryptionData, Newtonsoft.Json.Formatting.None);

if (accessCondition == null)
{
Expand Down Expand Up @@ -4109,12 +4109,12 @@ private async Task<WrappedKeyData> RotateEncryptionHelper(AccessCondition access
this.ValidateKeyRotationArguments(accessCondition, modifiedOptions, encryptionMetadataAvailable);

// Deserialize the old encryption data and validate:
BlobEncryptionData encryptionData = Newtonsoft.Json.JsonConvert.DeserializeObject<BlobEncryptionData>(encryptionDataString, DefaultSerializerSettings.Create());
BlobEncryptionData encryptionData = Newtonsoft.Json.JsonConvert.DeserializeObject<BlobEncryptionData>(encryptionDataString);
if (encryptionData.WrappedContentKey.EncryptedKey == null)
{
throw new InvalidOperationException(SR.KeyRotationNoKeyID);
}

// Use the key resolver to resolve the old KEK.
Azure.KeyVault.Core.IKey oldKey = await modifiedOptions.EncryptionPolicy.KeyResolver.ResolveKeyAsync(encryptionData.WrappedContentKey.KeyId, cancellationToken).ConfigureAwait(false);
if (oldKey == null)
Expand Down
2 changes: 1 addition & 1 deletion Lib/ClassLibraryCommon/Queue/QueueEncryptionPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ internal byte[] DecryptMessage(string inputMessage, bool? requireEncryption)

try
{
CloudQueueEncryptedMessage encryptedMessage = JsonConvert.DeserializeObject<CloudQueueEncryptedMessage>(inputMessage, DefaultSerializerSettings.Create());
CloudQueueEncryptedMessage encryptedMessage = JsonConvert.DeserializeObject<CloudQueueEncryptedMessage>(inputMessage);

if (requireEncryption.HasValue && requireEncryption.Value && encryptedMessage.EncryptionData == null)
{
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 @@ -908,7 +908,7 @@ static HeaderConstants()
/// <summary>
/// Specifies the value to use for UserAgent header.
/// </summary>
public const string UserAgentProductVersion = "9.1.0";
public const string UserAgentProductVersion = "9.1.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 @@ -35,8 +35,8 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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/2013/05/nuspec.xsd">
<metadata minClientVersion="2.12">
<id>WindowsAzure.Storage</id>
<version>9.1.0</version>
<version>9.1.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 @@ -33,8 +33,8 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.1.0")]

[assembly: NeutralResourcesLanguageAttribute("en-US")]

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("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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 @@ -26,8 +26,8 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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 (9.1.0)
# Microsoft Azure Storage SDK for .NET (9.1.1)

The Microsoft Azure Storage SDK for .NET allows you to build Azure applications
that take advantage of scalable cloud computing resources.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"title": "Microsoft.WindowsAzure.Storage.Facade.NetCore.Test",
"version": "9.1.0.0",
"version": "9.1.1.0",
"testRunner": "xunit",

"dependencies": {
"xunit": "2.1.0",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"XUnitForMsTest": "1.0.0.0",
"WindowsAzure.Storage": "9.1.0"
"WindowsAzure.Storage": "9.1.1"
},

"frameworks": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": "9.1.0.0",
"version": "9.1.1.0",
"supports": {},
"dependencies": {
"WindowsAzure.Storage": "9.1.0"
"WindowsAzure.Storage": "9.1.1"
},
"frameworks": {
".NETPortable,Version=v4.5,Profile=Profile259": {}
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": "9.1.0.0",
"version": "9.1.1.0",
"testRunner": "xunit",

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

Expand Down
11 changes: 8 additions & 3 deletions Test/ClassLibraryCommon/Table/SAS/TableSasUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1064,8 +1064,10 @@ public void TableUpdateSasTestSync()
string sasToken = table.GetSharedAccessSignature(policy);
StorageCredentials creds = new StorageCredentials(sasToken);
CloudTable sasTable = new CloudTable(table.Uri, creds);
BaseEntity entity2 = new BaseEntity("PK", "RK2");
entity2.Populate();
TestHelper.ExpectedException(
() => sasTable.Execute(TableOperation.Insert(new BaseEntity("PK", "RK2"))),
() => sasTable.Execute(TableOperation.Insert(entity2)),
"Try to insert an entity when SAS doesn't allow inserts",
HttpStatusCode.Forbidden);

Expand All @@ -1082,8 +1084,9 @@ public void TableUpdateSasTestSync()
creds.UpdateSASToken(sasToken2);

sasTable = new CloudTable(table.Uri, creds);

sasTable.Execute(TableOperation.Insert(new BaseEntity("PK", "RK2")));
BaseEntity entity3 = new BaseEntity("PK", "RK2");
entity3.Populate();
sasTable.Execute(TableOperation.Insert(entity3));

}
finally
Expand Down Expand Up @@ -1182,10 +1185,12 @@ public void TableSasUriPkRkTestSync()

Action<BaseEntity, CloudTable, OperationContext> insertDelegate = (tableEntity, sasTable1, ctx) =>
{
tableEntity.Populate();
sasTable1.Execute(TableOperation.Insert(tableEntity), null, ctx);
};

pkrkEnt = new BaseEntity("tables_batch_2", "00");
pkrkEnt.Populate();
TestHelper.ExpectedException(
(ctx) => insertDelegate(pkrkEnt, sasTableTransformed, ctx),
string.Format("Inserted entity without appropriate SAS permissions."),
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 @@ -33,6 +33,6 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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 @@ -33,7 +33,7 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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 @@ -34,7 +34,7 @@
// by using the '*' as shown below:


[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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 @@ -25,7 +25,7 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.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 @@ -25,7 +25,7 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("9.1.0.0")]
[assembly: AssemblyFileVersion("9.1.0.0")]
[assembly: AssemblyVersion("9.1.1.0")]
[assembly: AssemblyFileVersion("9.1.1.0")]

[assembly: ComVisible(false)]
6 changes: 5 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Change in 9.1.0:
Changes in 9.1.1:
- Table: Updated Table related APIs to use the default Json Serializer settings.
- Table: Fixed a bug introduced after OData dependencies were removed, where support for double.NaN, double.PositiveInfinity and double.NegativeInfinity were lost.

Changes in 9.1.0:
- All: Updated Get*BlobReference APIs to inherit the existing ServiceClient instance.
- All: Removed the un-necessary stream wrapping when progress tracking is not requested.
- Blob(RT/NetCore): Removed Task.Run from CloudBlob Undelete API.
Expand Down

0 comments on commit 3331c60

Please sign in to comment.