You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which service(blob, file, queue, table) does this issue concern?
Table
Which version of the SDK was used?
1.1.1, and master + dev branches
What problem was encountered?
Batch operations fail with "Header name can not be empty" exception, because guzzle/psr7 has added an empty header check in 1.6.0 which is failing now: guzzle/psr7#250 + guzzle/psr7#272
There was 1 error:
1) MicrosoftAzure\Storage\Tests\Unit\Table\Models\BatchResultTest::testCreate
InvalidArgumentException: Header name can not be empty.
/media/snafu-htdocs/private/libs/azure-storage-php/vendor/guzzlehttp/psr7/src/MessageTrait.php:210
/media/snafu-htdocs/private/libs/azure-storage-php/vendor/guzzlehttp/psr7/src/MessageTrait.php:146
/media/snafu-htdocs/private/libs/azure-storage-php/vendor/guzzlehttp/psr7/src/Response.php:106
/media/snafu-htdocs/private/libs/azure-storage-php/azure-storage-table/src/Table/Models/BatchResult.php:154
/media/snafu-htdocs/private/libs/azure-storage-php/tests/Unit/Table/Models/BatchResultTest.php:57
The empty line which serves as a header/body delimiter in HTTP will be added to the headers array with null value before the do/while loop ends on Resources::EMPTY_STRING != $headerLine and then the psr7's assert will fail. I'll prepare a PR with a suggested fix (done: #192).
Do you run any sort of periodical tests/CI that would alert you to this issue as soon as possible?
The text was updated successfully, but these errors were encountered:
Which service(blob, file, queue, table) does this issue concern?
Table
Which version of the SDK was used?
1.1.1, and master + dev branches
What problem was encountered?
Batch operations fail with "Header name can not be empty" exception, because guzzle/psr7 has added an empty header check in 1.6.0 which is failing now: guzzle/psr7#250 + guzzle/psr7#272
Steps to reproduce the issue?
composer install
The test will fail with
Have you found a mitigation/solution?
Yes. The issue is here
azure-storage-php/azure-storage-table/src/Table/Models/BatchResult.php
Lines 79 to 84 in f27c5ed
The empty line which serves as a header/body delimiter in HTTP will be added to the headers array with null value before the do/while loop ends on
Resources::EMPTY_STRING != $headerLine
and then the psr7's assert will fail. I'll prepare a PR with a suggested fix (done: #192).Do you run any sort of periodical tests/CI that would alert you to this issue as soon as possible?
The text was updated successfully, but these errors were encountered: