Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

TypeError in ServiceProperties::getCorsesArray() due to count() on null value #329

@Relevate-Jeff-Knight

Description

@Relevate-Jeff-Knight

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

Common

Which version of the SDK was used?

1.5.2

What's the PHP/OS version?

PHP 8.1.3 / Ubuntu 21.10

What problem was encountered?

Trying to use the setBlobServiceProperties() function from the samples/AADAuthSamples.php throws an error because you can't pass count() a null value.

Steps to reproduce the issue?

Run the function setBlobServiceProperties() in the samples/AADAuthSamples.php

Have you found a mitigation/solution?

Change getCorses() to return an empty array when value is null, check for null values in the setBlobServiceProperties() before using count().

Is there a failing request ID related to this problem returned by server? What is it?

N/A

What is the storage account name and time frame of your last reproduce? (UTC YYYY/MM/DD hh:mm:ss)

N/A

(If you think some of the information should not be shared publicly, you can e-mail the main Microsoft contributors of the repository instead.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions