Skip to content

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

Merged
iusafaro merged 2 commits intodevelopfrom
iusafaro/responsefix
Sep 17, 2018
Merged

Response code shouldn't be overwritten to 200 if not set#918
iusafaro merged 2 commits intodevelopfrom
iusafaro/responsefix

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