NPE in Configure System page when using HTTP/2

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • 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.

            Assignee:
            Unassigned
            Reporter:
            Andreya Kostov
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: