Skip to content

Fix Bug in Ignoring Response Body#31952

Merged
alzimmermsft merged 2 commits intoAzure:mainfrom
alzimmermsft:AzCore_MinorFixToBodyIgnore
Nov 4, 2022
Merged

Fix Bug in Ignoring Response Body#31952
alzimmermsft merged 2 commits intoAzure:mainfrom
alzimmermsft:AzCore_MinorFixToBodyIgnore

Conversation

@alzimmermsft
Copy link
Copy Markdown
Member

Description

Fixes a bug when the HTTP response was being ignored to treat it as the same as eagerly reading the response, again. The JdkHttpClient was fixed to no longer use FluxUtil.collectBytesFromNetworkResponse which was the root of the issue for why ignoring response was added.

The bug found was in Storage when a void response method had an exception a response body would be returned containing the error message.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@alzimmermsft alzimmermsft self-assigned this Nov 4, 2022
@ghost ghost added the Azure.Core azure-core label Nov 4, 2022
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Copy Markdown

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

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

Can you please create another task to test this behavior?

@alzimmermsft
Copy link
Copy Markdown
Member Author

Can you please create another task to test this behavior?

Tests will be added in the next push

@alzimmermsft alzimmermsft marked this pull request as ready for review November 4, 2022 18:01
@alzimmermsft alzimmermsft enabled auto-merge (squash) November 4, 2022 18:01
@alzimmermsft alzimmermsft merged commit 00e2e72 into Azure:main Nov 4, 2022
@alzimmermsft alzimmermsft deleted the AzCore_MinorFixToBodyIgnore branch November 4, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants