Skip to content

Comments

Unable to connect to ServiceControl due to case sensitivity when consuming response headers#1485

Merged
kentdr merged 2 commits intomasterfrom
response-headers-ignorecase
Aug 29, 2024
Merged

Unable to connect to ServiceControl due to case sensitivity when consuming response headers#1485
kentdr merged 2 commits intomasterfrom
response-headers-ignorecase

Conversation

@soujay
Copy link
Contributor

@soujay soujay commented Aug 25, 2024

fix for

Symptoms

When attempting to connect to an instance of ServiceControl the following error is shown:

There was an error connecting to ServiceControl. Either the address is not valid or the service is down.

Who's affected

If you are receiving this error even though ServiceControl is confirmed to be running properly.

Root cause

ServiceInsights validations of proper HTTP headers being returned from ServiceControl are not case insensitive. If the casing of the HTTP headers being returned from ServiceControl are being changed in any way, the validations will fail. The HTTP specification indicates that headers are supposed to be case insensitive.

This PR ignores the case while performing string comparisons of the response header keys with the ServiceControlHeaders

@soujay soujay self-assigned this Aug 25, 2024
@soujay soujay added this to the 2.14.0 milestone Aug 25, 2024
@soujay soujay changed the title Response headers ignorecase Ignore case when string comparing response headers with ServiceControlHeaders Aug 25, 2024
@kentdr kentdr merged commit fd2a3a8 into master Aug 29, 2024
@kentdr kentdr deleted the response-headers-ignorecase branch August 29, 2024 17:51
@kentdr kentdr added the Bug label Aug 29, 2024
@soujay soujay changed the title Ignore case when string comparing response headers with ServiceControlHeaders Unable to connect to ServiceControl even with the valid license and address Sep 4, 2024
@kentdr kentdr changed the title Unable to connect to ServiceControl even with the valid license and address Unable to connect to ServiceControl due to case sensitivity when consuming response headers Sep 5, 2024
@ngallegos ngallegos modified the milestones: 2.13.1, 2.13.2 Feb 9, 2026
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.

5 participants