Azure / azure-storage-net

Microsoft Azure Storage Libraries for .NET
Apache License 2.0
446 stars 373 forks source link

UseDevelopmentStorage setting value is case sensitive #944

Open brotaru89 opened 4 years ago

brotaru89 commented 4 years ago

Which service(blob, file, queue, table) does this issue concern?

Blog storage

Which version of the SDK was used?

Microsoft.Azure.Storage.Blob Version=11.1.0

Which platform are you using? (ex: .NET Core 2.1)

.NET Framework 4.7.2

What problem was encountered?

When invoking Microsoft.Azure.Storage.CloudStorageAccount.Parse("UseDevelopmentStorage=True") the code throws a FormatException with the message "No valid combination of account information found."

How can we reproduce the problem in the simplest way?

Parse a blob connection (using CloudStorageAccount.Parse) string that's pointing to the storage account development emulator and use the endpoint "UseDevelopmentStorage=True;"

Have you found a mitigation/solution?

The solution is to change the call to use "UseDevelopmentStorage=true;" instead of "UseDevelopmentStorage=True;" - notice lower case letter "t" vs. upper case letter "T"

abatishchev commented 3 years ago

Fixed similar issue but in the track2 library (Azure.Storage.Common): https://github.com/Azure/azure-sdk-for-net/pull/17649