From dbdd3fa6ec40fb4a283cbc26f1f521d0761d8d33 Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Tue, 23 Feb 2021 14:00:43 +0800 Subject: [PATCH 1/2] upgrade recommended cpprest version to 2.10.18 (#380) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5f017a08..74bf6436 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ To build with source code, there are three ways to install dependencies: Because Casablanca does not release NuGet packages anywhere anymore, Starting from 5.1.0, this repository cannot be built with pre-built Casablanca NuGet packages. However, you can export your own version of Casablanca NuGet packages to install dependencies of this project: ```BatchFile C:\src\vcpkg> .\vcpkg install cpprestsdk - C:\src\vcpkg> .\vcpkg export --nuget cpprestsdk --nuget-id=Casablanca --nuget-version=2.10.16 + C:\src\vcpkg> .\vcpkg export --nuget cpprestsdk --nuget-id=Casablanca --nuget-version=2.10.18 ``` - Manage dependencies by yourself @@ -131,7 +131,7 @@ The validated Casablanca version for each major or recent release on different p | 7.3.0 | 2.10.15 | 2.10.15 | | 7.3.1 | 2.10.15 | 2.10.15 | | 7.4.0 | 2.10.16 | 2.10.16 | -| 7.5.0 | 2.10.16 | 2.10.16 | +| 7.5.0 | 2.10.18 | 2.10.18 | ## Code Samples @@ -226,7 +226,7 @@ git clone https://github.com/Microsoft/cpprestsdk.git - Checkout the version on which Azure Storage Client Library for C++ depends: ```bash -git checkout tags/v2.10.16 -b v2.10.16 +git checkout tags/v2.10.18 -b v2.10.18 ``` - Build the project in Release mode @@ -334,7 +334,7 @@ git clone https://github.com/Microsoft/cpprestsdk.git - Checkout the version on which Azure Storage Client Library for C++ depends: ```bash cd cpprestsdk -git checkout tags/v2.10.16 -b v2.10.16 +git checkout tags/v2.10.18 -b v2.10.18 ``` - Build the project in Release mode From 95ce93f9ba5df5c23f4ee1656d583a8a8aefb4b8 Mon Sep 17 00:00:00 2001 From: Tom Swedlund Date: Fri, 30 Apr 2021 17:39:52 -0400 Subject: [PATCH 2/2] removing the signed-resource requirement for account SAS tokens --- .../src/shared_access_signature.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Microsoft.WindowsAzure.Storage/src/shared_access_signature.cpp b/Microsoft.WindowsAzure.Storage/src/shared_access_signature.cpp index da2ee9d7..3e4e69c3 100644 --- a/Microsoft.WindowsAzure.Storage/src/shared_access_signature.cpp +++ b/Microsoft.WindowsAzure.Storage/src/shared_access_signature.cpp @@ -115,12 +115,6 @@ namespace azure { namespace storage { namespace protocol { splitted_query.erase(remove_param); } - auto signed_resource = splitted_query.find(protocol::uri_query_sas_resource); - if (require_signed_resource && signed_resource == splitted_query.end()) - { - throw std::invalid_argument(protocol::error_missing_params_for_sas); - } - web::http::uri_builder builder; for (auto iter = splitted_query.cbegin(); iter != splitted_query.cend(); ++iter) {