ReverseProxySetupMonitor results in NullPointerException

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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: core
    • Environment:

      running Jenkins through a reverse proxy and see the "It appears that your reverse proxy set up is broken."  All troubleshooting came up with no issues in configuration.  Ran getTestForReverseProxySetup in Groovy console and saw NullPointerException.

      This will reproduce it every time:

      import hudson.diagnosis.ReverseProxySetupMonitor;
      def monitor = new ReverseProxySetupMonitor();
      def testResult = monitor.getTestForReverseProxySetup();

      First part of output and error message is:

      java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "rest" is null at hudson.diagnosis.ReverseProxySetupMonitor.getTestForReverseProxySetup(ReverseProxySetupMonitor.java:99) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580)

        1. curl.ReverseProxySetupMonitor.test
          72 kB
          Matthew
        2. groovy-script-console-error.txt
          12 kB
          Matthew
        3. jenkins.environment
          8 kB
          Matthew
        4. nginx-conf.txt
          11 kB
          Matthew

            Assignee:
            Unassigned
            Reporter:
            Matthew
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: