From 6196650be80b833a671c4484c4263028fa712538 Mon Sep 17 00:00:00 2001 From: boonhong Date: Fri, 17 Sep 2021 15:45:09 +0800 Subject: [PATCH 1/5] Fix broken links in markdown files --- CONTRIBUTING.md | 2 +- README.md | 2 +- azure-storage-blob/README.md | 4 ++-- azure-storage-file/README.md | 2 +- azure-storage-queue/README.md | 4 ++-- azure-storage-table/README.md | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c4299c768..a432341fb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -If you intend to contribute to the project, please make sure you've followed the instructions provided in the [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/). +If you intend to contribute to the project, please make sure you've followed the instructions provided in the [Azure Projects Contribution Guidelines](https://opensource.microsoft.com/program/#program-contributing). ## Project Setup The Azure Storage development team uses [Eclipse for PHP Developers](http://www.eclipse.org/downloads/packages/eclipse-php-developers/mars2) so instructions will be tailored to that preference. However, any preferred IDE or other toolset should be usable. diff --git a/README.md b/README.md index ea6ab66c2..d22275ab3 100644 --- a/README.md +++ b/README.md @@ -243,7 +243,7 @@ Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](ht # Contribute Code or Provide Feedback -If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/). +If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](https://opensource.microsoft.com/program/#program-contributing). You can find more details for contributing in the [CONTRIBUTING.md](CONTRIBUTING.md). If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project. diff --git a/azure-storage-blob/README.md b/azure-storage-blob/README.md index 00c98f2c1..2bd850f8d 100644 --- a/azure-storage-blob/README.md +++ b/azure-storage-blob/README.md @@ -153,7 +153,7 @@ cURL can't verify the validity of Microsoft certificate when trying to issue a r ## Code samples -You can find samples in the [sample folder](samples) +You can find samples in the [samples folder](https://github.com/Azure/azure-storage-php/tree/master/samples) # Migrate from [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/) @@ -168,7 +168,7 @@ Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](ht # Contribute Code or Provide Feedback -If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](https://azure.github.io/guidelines/). +If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](https://opensource.microsoft.com/program/#program-contributing). You can find more details for contributing in the [CONTRIBUTING.md](CONTRIBUTING.md). If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project. diff --git a/azure-storage-file/README.md b/azure-storage-file/README.md index 3a5c17511..1c1967307 100644 --- a/azure-storage-file/README.md +++ b/azure-storage-file/README.md @@ -163,7 +163,7 @@ Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](ht # Contribute Code or Provide Feedback -If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/). +If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](https://opensource.microsoft.com/program/#program-contributing). You can find more details for contributing in the [CONTRIBUTING.md](CONTRIBUTING.md). If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project. diff --git a/azure-storage-queue/README.md b/azure-storage-queue/README.md index cb9bbb37b..42a1333a7 100644 --- a/azure-storage-queue/README.md +++ b/azure-storage-queue/README.md @@ -152,7 +152,7 @@ cURL can't verify the validity of Microsoft certificate when trying to issue a r ## Code samples -You can find samples in the [sample folder](samples) +You can find samples in the [samples folder](https://github.com/Azure/azure-storage-php/tree/master/samples) # Migrate from [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/) @@ -167,7 +167,7 @@ Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](ht # Contribute Code or Provide Feedback -If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/). +If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](https://opensource.microsoft.com/program/#program-contributing). You can find more details for contributing in the [CONTRIBUTING.md](CONTRIBUTING.md). If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project. diff --git a/azure-storage-table/README.md b/azure-storage-table/README.md index dbc5b5ebc..81dcbfa23 100644 --- a/azure-storage-table/README.md +++ b/azure-storage-table/README.md @@ -149,7 +149,7 @@ cURL can't verify the validity of Microsoft certificate when trying to issue a r ## Code samples -You can find samples in the [sample folder](samples) +You can find samples in the [samples folder](https://github.com/Azure/azure-storage-php/tree/master/samples) # Migrate from [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/) @@ -164,7 +164,7 @@ Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](ht # Contribute Code or Provide Feedback -If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/). +If you would like to become an active contributor to this project please follow the instructions provided in [Azure Projects Contribution Guidelines](https://opensource.microsoft.com/program/#program-contributing). You can find more details for contributing in the [CONTRIBUTING.md](CONTRIBUTING.md). If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-storage-php/issues) section of the project. From c025ce5044c079dd9a8d9331edc782797f3bfea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Wed, 1 Dec 2021 05:05:10 +0100 Subject: [PATCH 2/5] Check $copyProgress is not null before using it in strpos Passing nulls to string params is deprecated in PHP 8.1. Fix #320 --- azure-storage-blob/src/Blob/Models/CopyState.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-storage-blob/src/Blob/Models/CopyState.php b/azure-storage-blob/src/Blob/Models/CopyState.php index dd140c77a..732e28ed3 100644 --- a/azure-storage-blob/src/Blob/Models/CopyState.php +++ b/azure-storage-blob/src/Blob/Models/CopyState.php @@ -74,7 +74,7 @@ public static function createFromXml(array $parsed) $copyProgress = Utilities::tryGetValue($clean, 'copyprogress'); - if (strpos($copyProgress, '/') !== false) { + if (!is_null($copyProgress) && strpos($copyProgress, '/') !== false) { $parts = explode('/', $copyProgress); $bytesCopied = intval($parts[0]); $totalBytes = intval($parts[1]); @@ -112,7 +112,7 @@ public static function createFromHttpHeaders(array $parsed) $result->setSource(Utilities::tryGetValue($clean, Resources::X_MS_COPY_SOURCE)); $copyProgress = Utilities::tryGetValue($clean, Resources::X_MS_COPY_PROGRESS); - if (strpos($copyProgress, '/') !== false) { + if (!is_null($copyProgress) && strpos($copyProgress, '/') !== false) { $parts = explode('/', $copyProgress); $bytesCopied = intval($parts[0]); $totalBytes = intval($parts[1]); From 549fb47d10baf923cb720c7399b7bf6f466503f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Tue, 22 Mar 2022 22:12:45 +0100 Subject: [PATCH 3/5] Remove EOL from Content-Type header Because guzzlehttp/psr7 now fails on EOLs in header values Fix #327 --- azure-storage-table/src/Table/Internal/MimeReaderWriter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-storage-table/src/Table/Internal/MimeReaderWriter.php b/azure-storage-table/src/Table/Internal/MimeReaderWriter.php index 4be952cb2..0d360bf0b 100644 --- a/azure-storage-table/src/Table/Internal/MimeReaderWriter.php +++ b/azure-storage-table/src/Table/Internal/MimeReaderWriter.php @@ -73,7 +73,7 @@ public function encodeMimeMultipart(array $bodyPartContents) $batchBody =& $result['body']; $batchHeaders =& $result['headers']; - $batchHeaders['Content-Type'] = $mimeType . "; $eof boundary=\"$batchId\""; + $batchHeaders['Content-Type'] = $mimeType . "; boundary=\"$batchId\""; $batchBody .= "--" . $batchId . $eof; $batchBody .= "Content-Type: $mimeType; boundary=\"$changeSetId\"" . $eof; From 366d0385e4718935199313c26d39807eed044c67 Mon Sep 17 00:00:00 2001 From: manumsft <82905109+manumsft@users.noreply.github.com> Date: Mon, 18 Jul 2022 17:03:09 -0700 Subject: [PATCH 4/5] Update README.md Adding info about community support on this page. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d22275ab3..b246c4900 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Microsoft Azure Storage PHP Client Libraries +This project will be in Community Support and Azure Storage team commits to validate and release every quarter, as long as there are PRs from community. Azure Storage team is unable to continue to add new features or provide bugfixes. + This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage services (blobs, tables, queues and files). For documentation on how to host PHP applications on Microsoft Azure, please see the [Microsoft Azure PHP Developer Center](http://www.windowsazure.com/en-us/develop/php/). * azure-storage-blob [![Latest Stable Version](https://poser.pugx.org/microsoft/azure-storage-blob/v/stable)](https://packagist.org/packages/microsoft/azure-storage-blob) @@ -239,7 +241,9 @@ For now, Microsoft Azure Storage PHP client libraries share almost the same inte # Need Help? -Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](http://go.microsoft.com/fwlink/?LinkId=234489) and [github issues](https://github.com/Azure/azure-storage-php/issues) if you have trouble with the provided code. +Be sure to check out the Microsoft Azure [Developer Forums on Stack Overflow](http://go.microsoft.com/fwlink/?LinkId=234489) and [github issues](https://github.com/Azure/azure-storage-php/issues) if you have trouble with the provided code. + +Please note this project will be in Community Support and Azure Storage team commits to validate and release every quarter, as long as there are PRs from community. Azure Storage team is unable to continue to add new features or provide bugfixes. # Contribute Code or Provide Feedback From 6375364859de5bb0ad87e9cf8b5f62c6d080f528 Mon Sep 17 00:00:00 2001 From: Tank Tang Date: Mon, 29 Aug 2022 15:07:33 +0800 Subject: [PATCH 5/5] blob 1.5.4/table 1.1.6 release doc change --- azure-storage-blob/ChangeLog.md | 3 +++ azure-storage-blob/composer.json | 2 +- azure-storage-blob/src/Blob/Internal/BlobResources.php | 2 +- azure-storage-table/ChangeLog.md | 3 +++ azure-storage-table/composer.json | 2 +- azure-storage-table/src/Table/Internal/TableResources.php | 2 +- 6 files changed, 10 insertions(+), 4 deletions(-) diff --git a/azure-storage-blob/ChangeLog.md b/azure-storage-blob/ChangeLog.md index 9eb747ad4..9ac67da48 100644 --- a/azure-storage-blob/ChangeLog.md +++ b/azure-storage-blob/ChangeLog.md @@ -1,3 +1,6 @@ +2022.08 - version 1.5.4 +* Check `$copyProgress` is not null before using it in `strpos`. + 2021.09 - version 1.5.3 * Upgraded dependency for `azure-storage-common` to version 1.5.2. * Resolved some interface inconsistency between `IBlob`/`BlobRestProxy`. diff --git a/azure-storage-blob/composer.json b/azure-storage-blob/composer.json index 3f9cf74f0..3dd32f25a 100644 --- a/azure-storage-blob/composer.json +++ b/azure-storage-blob/composer.json @@ -1,6 +1,6 @@ { "name": "microsoft/azure-storage-blob", - "version": "1.5.3", + "version": "1.5.4", "description": "This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage Blob APIs.", "keywords": [ "php", "azure", "storage", "sdk", "blob" ], "license": "MIT", diff --git a/azure-storage-blob/src/Blob/Internal/BlobResources.php b/azure-storage-blob/src/Blob/Internal/BlobResources.php index d1a9c5279..a94adb8fc 100644 --- a/azure-storage-blob/src/Blob/Internal/BlobResources.php +++ b/azure-storage-blob/src/Blob/Internal/BlobResources.php @@ -41,7 +41,7 @@ class BlobResources extends Resources { // @codingStandardsIgnoreStart - const BLOB_SDK_VERSION = '1.5.3'; + const BLOB_SDK_VERSION = '1.5.4'; const STORAGE_API_LATEST_VERSION = '2017-11-09'; // Error messages diff --git a/azure-storage-table/ChangeLog.md b/azure-storage-table/ChangeLog.md index 2d24c6b5f..e28033d70 100644 --- a/azure-storage-table/ChangeLog.md +++ b/azure-storage-table/ChangeLog.md @@ -1,3 +1,6 @@ +2022.08 - version 1.1.6 +* Removed EOL from Content-Type header in batch API. + 2021.09 - version 1.1.5 * Upgraded dependency for `azure-storage-common` to version 1.5.2. * Fixed a bug where `QueryEnttitiesResult` with a null `NextRowKey` won't work. diff --git a/azure-storage-table/composer.json b/azure-storage-table/composer.json index cb04fd445..7af5b0384 100644 --- a/azure-storage-table/composer.json +++ b/azure-storage-table/composer.json @@ -1,6 +1,6 @@ { "name": "microsoft/azure-storage-table", - "version": "1.1.5", + "version": "1.1.6", "description": "This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage Table APIs.", "keywords": [ "php", "azure", "storage", "sdk", "table" ], "license": "MIT", diff --git a/azure-storage-table/src/Table/Internal/TableResources.php b/azure-storage-table/src/Table/Internal/TableResources.php index 4ed0f3a65..33191cc7d 100644 --- a/azure-storage-table/src/Table/Internal/TableResources.php +++ b/azure-storage-table/src/Table/Internal/TableResources.php @@ -41,7 +41,7 @@ class TableResources extends Resources { // @codingStandardsIgnoreStart - const TABLE_SDK_VERSION = '1.1.5'; + const TABLE_SDK_VERSION = '1.1.6'; const STORAGE_API_LATEST_VERSION = '2016-05-31'; const DATA_SERVICE_VERSION_VALUE = '3.0';