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

Fix Proxy Response Mapping #4630

Conversation

aavasthy
Copy link
Contributor

@aavasthy aavasthy commented Aug 5, 2024

Pull Request Template

Description

This is a fix for the bug Fix Rntbd deserializer: Throwing exception when deserializing error responses

Type of change

Adding HttpResponse Request parameter mapping ProxyResponse.

  • Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #4627

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please follow the required format: "[Internal] Category: (Adds|Fixes|Refactors|Removes) Description"

Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included. Examples:
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics
PartitionKey: Fixes null reference when using default(PartitionKey)
[v4] Client Encryption: Refactors code to external project
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.

ref bytesDeserializer);

HttpResponseMessage response = new HttpResponseMessage((HttpStatusCode)storeResponse.StatusCode);
ref bytesDeserializer);
Copy link
Member

Choose a reason for hiding this comment

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

Unit test coverage?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will be adding more test coverage in parent branch. This change was supposed to be another commit in parent branch and not a separate PR, so closing this PR.


HttpResponseMessage response = new HttpResponseMessage((HttpStatusCode)storeResponse.StatusCode)
{
RequestMessage = responseMessage.RequestMessage
Copy link
Member

Choose a reason for hiding this comment

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

Change is just including the RequrestMessage in response, right? Or am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes this change is to fix serializer during an error response from proxy. It was initially returing null reference exception due to incorrect request mapping. This change was supposed to be another commit in parent branch and not a separate PR, so closing this PR.

@aavasthy aavasthy marked this pull request as draft August 6, 2024 20:34
@aavasthy aavasthy closed this Aug 7, 2024
@aavasthy aavasthy deleted the users/aavasthy/4627_fix_ProxyResponseMapping branch August 7, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants