Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed double decoding in getBlobName #22825

Merged
merged 2 commits into from
Jul 8, 2021

Conversation

rickle-msft
Copy link
Contributor

@rickle-msft rickle-msft commented Jul 7, 2021

Resolves #22722

I checked other packages for object-level getName() methods, and this seems to be the only instance of this

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Jul 7, 2021
resultName == bc.getBlobName()

where:
name | resultName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about expected name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputName and outputName?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def inputName = "bla"
def expectedOutputName = "bla I think I'll get"
def outputName = bc.getBlobName()

assert outputName = expectedOutputName

That's if I were most explicit.

inputName and expectedOutputName might suffice.

@rickle-msft rickle-msft merged commit c3723d2 into Azure:main Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] BlobClient#getBlobName() returns incorrectly decoded name
3 participants