-
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
[JENKINS-70630] NPE in Configure System page when using HTTP/2
Summary | Original: NPE in Configure System when using HTTP/2 | New: NPE in Configure System page when using HTTP/2 |
Link |
New:
This issue is duplicated by |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "https://github.com/jenkinsci/jenkins/pull/7701 (Web Link)" [ 28526 ] |
Released As | New: 2.400 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Closed [ 6 ] |
We would welcome a (tested) pull request that resolves this issue.