Skip to content

Commit

Permalink
XSCL 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pemari-msft committed Aug 4, 2015
1 parent 83009d7 commit 6d941f4
Show file tree
Hide file tree
Showing 290 changed files with 28,919 additions and 2,170 deletions.
7 changes: 7 additions & 0 deletions BreakingChanges.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
Tracking Breaking Changes since 4.0

- All: Deprecated the overload for GetSharedAccessSignature that takes a SAS version because the SAS tokens generated using the current version work fine with old libraries.
- All: Updated the error message for the error that is thrown for having more than 5 shared access policy identifiers to include shares.
- All: Changed behavior to stop stripping out query parameters passed in with the resource URI. Some query parameters such as comp, restype, snapshot and api-version will still be removed.
- Blobs: MultiBufferMemoryStream objects passed as argument to upload methods are not disposed by the client library.
- Blobs: ListBlobs* can return an additional type called CloudAppendBlob in the enumeration.
- Blobs: Deprecated StartCopyFromBlob() using the Obsolete attribute. Use StartCopy() instead.
- Blobs: CreateCloudBlobClient does not throw an exception when the credentials are null to support anonymous access.
- Tables: Removed Serialized attribute and ISerializable implementation from TableEntity. Implement ITabeEntity for your custom entities if you need either.

Tracking Breaking Changes since 3.0
Expand Down
10 changes: 5 additions & 5 deletions BuildAspNetK.cmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pushd %~dp0
call Tools\nuget.exe install dnx-coreclr-win-x86 -Version 1.0.0-beta4 -Prerelease
call Tools\nuget.exe install dnx-clr-win-x86 -Version 1.0.0-beta4 -Prerelease
call dnx-coreclr-win-x86.1.0.0-beta4\bin\dnu restore
call dnx-clr-win-x86.1.0.0-beta4\bin\dnu restore
call Tools\nuget.exe install dnx-coreclr-win-x86 -Version 1.0.0-beta5 -Prerelease
call Tools\nuget.exe install dnx-clr-win-x86 -Version 1.0.0-beta5 -Prerelease
call dnx-coreclr-win-x86.1.0.0-beta5\bin\dnu restore
call dnx-clr-win-x86.1.0.0-beta5\bin\dnu restore
cd Lib\AspNet\Microsoft.WindowsAzure.Storage
call ..\..\..\dnx-coreclr-win-x86.1.0.0-beta4\bin\dnu build --configuration release
call ..\..\..\dnx-coreclr-win-x86.1.0.0-beta5\bin\dnu build --configuration release
popd
Binary file not shown.
Binary file not shown.
Binary file added Documentation/SCL v4.3 - WinRT Documentation.chm
Binary file not shown.
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,8 +33,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("4.4.1.0")]
[assembly: AssemblyFileVersion("4.4.1.0")]
[assembly: AssemblyInformationalVersion("4.4.1.0-preview")]
[assembly: AssemblyVersion("5.0.1.0")]
[assembly: AssemblyFileVersion("5.0.1.0")]
[assembly: AssemblyInformationalVersion("5.0.1.0-preview")]

[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Storage.Test")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"Profiles": []
}
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>4.4.1-preview</version>
<version>5.0.1-preview</version>
<title>Windows Azure Storage</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
Expand Down Expand Up @@ -62,27 +62,26 @@ Microsoft Azure Storage team's blog - http://blogs.msdn.com/b/windowsazurestorag
<dependency id="System.Xml.XmlSerializer" version="4.0.0-beta-22231" />
</group>
<group targetFramework="ASP.Net5.0">
<dependency id="Microsoft.Data.OData" version="5.6.3" />
<dependency id="Microsoft.Data.Services.Client" version="5.6.3" />
<dependency id="System.Spatial" version="5.6.3" />
<dependency id="Microsoft.Data.OData" version="5.6.4" />
<dependency id="Microsoft.Data.Services.Client" version="5.6.4" />
<dependency id="System.Spatial" version="5.6.4" />
</group>
<group targetFramework="net40-client">
<dependency id="Microsoft.Data.OData" version="5.6.2" />
<dependency id="Microsoft.Data.OData" version="5.6.4" />
<dependency id="Newtonsoft.Json" version="6.0.8" />
<dependency id="Microsoft.Data.Services.Client" version="5.6.2" />
<dependency id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" />
<dependency id="Microsoft.Azure.KeyVault.Core" version="0.9.1-preview" />
<dependency id="Microsoft.Data.Services.Client" version="5.6.4" />
<dependency id="Microsoft.Azure.KeyVault.Core" version="1.0.0" />
</group>
<group targetFramework="win8">
<dependency id="Microsoft.Data.OData" version="5.6.2" />
<dependency id="Microsoft.Data.OData" version="5.6.4" />
</group>
<group targetFramework="wpa">
<dependency id="Microsoft.Data.OData" version="5.6.2" />
<dependency id="Microsoft.Data.OData" version="5.6.4" />
</group>
<group targetFramework="wp8">
<dependency id="Microsoft.Data.OData" version="5.6.2" />
<dependency id="Microsoft.Data.OData" version="5.6.4" />
<dependency id="Newtonsoft.Json" version="6.0.8" />
<dependency id="Microsoft.Azure.KeyVault.Core" version="0.9.1-preview" />
<dependency id="Microsoft.Azure.KeyVault.Core" version="1.0.0" />
</group>
<group targetFramework="portable-net45+netcore45+wpa81+MonoAndroid1+MonoTouch1">
<dependency id="Microsoft.Data.OData" version="5.6.4" />
Expand Down
6 changes: 1 addition & 5 deletions Lib/AspNet/Microsoft.WindowsAzure.Storage/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.4.1.0",
"version": "5.0.1.0",
"authors": [ "Microsoft Corporation" ],
"description": "Azure Storage SDK for ASP.NET 5 Preview",
"dependencies": {
Expand All @@ -10,7 +10,6 @@
"frameworks": {
"dnxcore50": {
"dependencies": {
"dnx-coreclr-win-x86": "1.0.0-beta4",
"System.Collections": "4.0.10-beta-*",
"System.Collections.Concurrent": "4.0.0-beta-*",
"System.Collections.Specialized": "4.0.0-beta-*",
Expand Down Expand Up @@ -62,9 +61,6 @@
"System.Xml.Linq": "",
"System.Runtime.Serialization.Xml": "",
"System.Net.Http": ""
},
"dependencies": {
"dnx-clr-win-x86": "1.0.0-beta4"
}
}
},
Expand Down
34 changes: 28 additions & 6 deletions Lib/ClassLibraryCommon/Blob/BlobEncryptedWriteStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ internal BlobEncryptedWriteStream(CloudBlockBlob blockBlob, AccessCondition acce

// Since this is done on the copy of the options object that the client lib maintains and not on the user's options object and is done after getting
// the transform function, it should be fine. Setting this ensures that an error is not thrown when PutBlock is called internally from the write method on the stream.
// The other way to do this is to have an internal bool property on request options that specifies whether range upload operations should validate
// that encryption policy is not set.
options.EncryptionPolicy = null;
options.SkipEncryptionPolicyValidation = true;

this.transform = transform;
this.writeStream = new BlobWriteStream(blockBlob, accessCondition, options, operationContext) { IgnoreFlush = true };
Expand Down Expand Up @@ -86,15 +84,39 @@ internal BlobEncryptedWriteStream(CloudPageBlob pageBlob, long pageBlobSize, boo

// Since this is done on the copy of the options object that the client lib maintains and not on the user's options object and is done after getting
// the transform function, it should be fine. Setting this ensures that an error is not thrown when PutPage is called internally from the write method on the stream.
// The other way to do this is to have an internal bool property on request options that specifies whether range upload operations should validate
// that encryption policy is not set.
options.EncryptionPolicy = null;
options.SkipEncryptionPolicyValidation = true;

this.transform = transform;
this.writeStream = new BlobWriteStream(pageBlob, pageBlobSize, createNew, accessCondition, options, operationContext) { IgnoreFlush = true };
this.cryptoStream = new CryptoStream(this.writeStream, transform, CryptoStreamMode.Write);
}

/// <summary>
/// Initializes a new instance of the BlobWriteStream class for an append blob.
/// </summary>
/// <param name="appendBlob">Blob reference to write to.</param>
/// <param name="accessCondition">An <see cref="AccessCondition"/> object that represents the condition that must be met in order for the request to proceed. If <c>null</c>, no condition is used.</param>
/// <param name="options">A <see cref="BlobRequestOptions"/> object that specifies additional options for the request.</param>
/// <param name="operationContext">An <see cref="OperationContext"/> object that represents the context for the current operation.</param>
/// <param name="transform">The ICryptoTransform function for the request.</param>
internal BlobEncryptedWriteStream(CloudAppendBlob appendBlob, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, ICryptoTransform transform)
{
CommonUtility.AssertNotNull("transform", transform);

if (options.EncryptionPolicy.EncryptionMode != BlobEncryptionMode.FullBlob)
{
throw new InvalidOperationException(SR.InvalidEncryptionMode, null);
}

// Since this is done on the copy of the options object that the client lib maintains and not on the user's options object and is done after getting
// the transform function, it should be fine. Setting this ensures that an error is not thrown when AppendBlock is called internally from the write method on the stream.
options.SkipEncryptionPolicyValidation = true;

this.transform = transform;
this.writeStream = new BlobWriteStream(appendBlob, accessCondition, options, operationContext) { IgnoreFlush = true };
this.cryptoStream = new CryptoStream(this.writeStream, transform, CryptoStreamMode.Write);
}

/// <summary>
/// Gets a value indicating whether the current stream supports reading.
/// </summary>
Expand Down
Loading

0 comments on commit 6d941f4

Please sign in to comment.