Bug 1861789
Summary: | Failed to decode HTML response from the OIDC server with error "invalid character '<' looking for beginning of value" | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | aghadge |
Component: | oauth-apiserver | Assignee: | Standa Laznicka <slaznick> |
Status: | CLOSED ERRATA | QA Contact: | pmali |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.5 | CC: | aos-bugs, mfojtik, pmali, scheng, sttts, xxia |
Target Milestone: | --- | ||
Target Release: | 4.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
Some OIDC servers ignore "Accept: application/json" when requesting a flow that they don't support.
Consequence:
Such OIDC servers may respond with an HTML page that the operator fails to parse as it's expecting json. It may be hard for a user to understand what the error is.
Fix:
Improve the error message by adding the URL of the page the authentication operator tried to reach.
Result:
It should now be more clear why the authentication operator fails in these cases.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 16:21:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
aghadge
2020-07-29 14:36:41 UTC
Changing to low severity, only happens in misconfigured environments Note that the fix consists of adding the URL when the parsing of the HTTP response fails so that the URL access can be attempted from inside the pod/wherever necessary, we won't be adding the full HTTP response's body to our error messages. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4196 |