Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70630

NPE in Configure System page when using HTTP/2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 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.

            Unassigned Unassigned
            andreyakostovsap Andreya Kostov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: