Closed mattt closed 2 years ago
Calling #create_from_connection_string and passing an arbitrary or empty string causes parse_connection_string to raise an error.
#create_from_connection_string
parse_connection_string
require 'azure/storage/blob' Azure::Storage::Blob::BlobService.create_from_connection_string("invalid")
This underlying issue is that calling String#index with a character not contained in the string returns nil, and < is an undefined method on nil.
String#index
nil
<
https://github.com/Azure/azure-storage-ruby/blob/05ea58af3859edda790e769be5beba7fcfb73c0f/common/lib/azure/storage/common/client_options.rb#L351
Calling
#create_from_connection_string
and passing an arbitrary or empty string causesparse_connection_string
to raise an error.This underlying issue is that calling
String#index
with a character not contained in the string returnsnil
, and<
is an undefined method onnil
.https://github.com/Azure/azure-storage-ruby/blob/05ea58af3859edda790e769be5beba7fcfb73c0f/common/lib/azure/storage/common/client_options.rb#L351