Breaking changes in Windows Azure SDK v4.0.1

Developer
Aug 12, 2011 at 4:09 PM

I noticed that the changeset #64452 in Windows Azure SDK for PHP (v4.0.1) breaks existing code. Any specific reason for this change in file library\Microsoft\WindowsAzure\Storage.php?

Code in v4.0.0: const URL_CLOUD_BLOB = "blob.core.windows.net";
New code in v4.0.1:  const URL_CLOUD_BLOB = "http://blob.core.windows.net";

In addition I cannot create storage client in development storage using following APIs:

$table = new Microsoft_WindowsAzure_Storage_Table();

It gives following error:

Fatal error: Uncaught exception 'Microsoft_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://devstoreaccount1.127.0.0.1:10002. Error #0: php_network_getaddresses: getaddrinfo failed: No such host is known. ' in C:\code\AzureGuestbookProject\PhpOnAzure.Web\Microsoft\Http\Client\Adapter\Socket.php:224 Stack trace: #0 C:\code\AzureGuestbookProject\PhpOnAzure.Web\Microsoft\Http\Client\Adapter\Proxy.php(84): Microsoft_Http_Client_Adapter_Socket->connect('devstoreaccount...', '10002', false) #1 C:\code\AzureGuestbookProject\PhpOnAzure.Web\Microsoft\Http\Client.php(943): Microsoft_Http_Client_Adapter_Proxy->connect('devstoreaccount...', '10002', false) #2 [internal function]: Microsoft_Http_Client->request('GET') #3 C:\code\AzureGuestbookProject\PhpOnAzure.Web\Microsoft\WindowsAzure\RetryPolicy\NoRetry.php(63): call_user_func_array(Array, Array) #4 C:\code\AzureGuestbookProject\PhpOnAzure.Web\Microsoft\WindowsAzure\Storage.php(430): Microsoft_WindowsAzure_RetryPolicy_NoRetry->execute(Array, Array) #5 C:\cod in C:\code\AzureGuestbookProject\PhpOnAzure.Web\Microsoft\Http\Client\Adapter\Socket.php on line 224

I had to explicitly provide development storage account name and keys as argument.
$table = new Microsoft_WindowsAzure_Storage_Table('127.0.0.1:10002',
                    'devstoreaccount1',
                    'Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==',
                    true, Microsoft_WindowsAzure_RetryPolicy_RetryPolicyAbstract::retryN(10, 250));

regards,

--

Satish

Coordinator
Aug 14, 2011 at 11:01 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.