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

Response code shouldn't be overwritten to 200 if not set #918

Merged
merged 2 commits into from
Sep 17, 2018

Conversation

iusafaro
Copy link
Contributor

Fix Issue # .
In our internal 'custom requests' tracking like for Service Bus implementation we don't set response code, but set success to false and as a result success is overwritten to true and response code set to 200. It shouldn't happen in case of StartOperation as well because response code doesn't apply there.

this.ResponseCode = string.Empty;
}

if (!this.Success.HasValue)
Copy link
Member

Choose a reason for hiding this comment

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

This changes our current experience in UI where requests may now have value if we were not able to collect response code. However, it's correct to respect that success is set to false. Can we set request to 200 when success if true and set to success to true only if it was not set to false before?

@iusafaro iusafaro merged commit 4168947 into develop Sep 17, 2018
@iusafaro iusafaro deleted the iusafaro/responsefix branch September 17, 2018 19:45
TimothyMothra pushed a commit that referenced this pull request Oct 25, 2019
…ault (#918)

* make JavascriptEncoder optional parameter to prevent crash when no encoder is available.
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