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

Commit

Permalink
Hotfix for small file putBlob issue. (#55)
Browse files Browse the repository at this point in the history
Hotfix for small file putBlob issue.
  • Loading branch information
katmsft authored and vinjiang committed Jan 25, 2017
1 parent e80bf8b commit b6cbf56
Show file tree
Hide file tree
Showing 281 changed files with 557 additions and 282 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2017.01 - version 0.12.1
Blob
* Fixed an issue where `createBlockBlob` would fail for some files with size larger than 1MB and smaller than 32MB.

2017.01 - version 0.12.0

ALL
Expand Down
4 changes: 2 additions & 2 deletions src/Blob/BlobRestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobRestProxy extends ServiceRestProxy implements IBlob
Expand Down Expand Up @@ -1618,7 +1618,7 @@ protected function createBlockBlobBySingleUploadAsync(
Validate::isString($container, 'container');
Validate::isString($blob, 'blob');
Validate::notNullOrEmpty($blob, 'blob');
$body = Psr7\stream_for($content);
$body = Psr7\stream_for($content)->getContents();
Validate::isTrue(
$options == null ||
$options instanceof CreateBlobOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Internal/IBlob.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
* @see http://msdn.microsoft.com/en-us/library/windowsazure/dd135733.aspx
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AccessCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class AccessCondition
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AccessPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class AccessPolicy
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AcquireLeaseOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class AcquireLeaseOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/Blob.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class Blob
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobBlockType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobBlockType
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobPrefix
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobProperties
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobServiceOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobType
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class Block
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BlockList
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BreakLeaseResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class BreakLeaseResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CommitBlobBlocksOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CommitBlobBlocksOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class Container
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ContainerACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class ContainerACL
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ContainerProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class ContainerProperties
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CopyBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CopyBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CopyBlobResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CopyBlobResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobBlockOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobBlockOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobPagesOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobPagesOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobPagesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobPagesResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobSnapshotOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobSnapshotOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobSnapshotResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobSnapshotResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateContainerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateContainerOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/DeleteBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class DeleteBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/DeleteContainerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class DeleteContainerOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobMetadataOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobMetadataOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobMetadataResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobMetadataResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobPropertiesOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobPropertiesOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobPropertiesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobPropertiesResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetContainerACLResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetContainerACLResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetContainerPropertiesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class GetContainerPropertiesResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/LeaseBlobResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class LeaseBlobResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/LeaseMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class LeaseMode
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ListBlobBlocksOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class ListBlobBlocksOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ListBlobBlocksResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class ListBlobBlocksResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ListBlobsOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.12.0
* @version Release: 0.12.1
* @link https://github.com/azure/azure-storage-php
*/
class ListBlobsOptions extends BlobServiceOptions
Expand Down
Loading

0 comments on commit b6cbf56

Please sign in to comment.