-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins version: 2.375.3
-
-
2.400
When I open the "Configure System" page, I see an embedded error page below the "Resource Root URL" input field. The following exception is present in the System Log for the provided Logging ID:
Feb 16, 2023 1:18:57 AM WARNING hudson.init.impl.InstallUncaughtExceptionHandler handleException Caught unhandled exception with ID c98e48d3-92d6-4520-807d-a621e0a61dbf java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because "currentRequestHost" is null at jenkins.security.ResourceDomainConfiguration.checkUrl(ResourceDomainConfiguration.java:139) at jenkins.security.ResourceDomainConfiguration.doCheckUrl(ResourceDomainConfiguration.java:89) ...
I believe this error is related to the fact that I recently switched our Jenkins instance to using HTTP/2 protocol. The currentRequestHost variable is extracted from the "Host" header, which as far as I understand is illegal in HTTP/2 and it is replaced with the ":authority" pseudo-header.
- is duplicated by
-
JENKINS-70752 Manual configuration broken when HTTP2 and Resource Root URL are enabled
- Resolved
- links to