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)

            Assignee:
            Unassigned
            Reporter:
            Matthew
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: