Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6837

LoadBalancer does not use Authentication to check on failed endpoints

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Done
    • 7.56.0.Final
    • 7.68.0.Final
    • kie server
    • None
    • 2022 Week 11-13 (from Mar 14), 2022 Week 14-16 (from Apr 4)
    • 3
    • NEW
    • NEW

    Description

      We have the following error in our APM :

      Exception:
      java.io.IOException
      Message:
      Server returned HTTP response code: 401 for URL: https://foo.bar:443/kie-server/services/rest/server
      Stacktrace:
      sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
      sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
      java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
      sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
      org.kie.server.common.rest.KieServerHttpRequest.responseCode(KieServerHttpRequest.java:1329)
      org.kie.server.common.rest.KieServerHttpRequest.get(KieServerHttpRequest.java:707)
      org.kie.server.client.balancer.LoadBalancer$CheckFailedEndpoints.run(LoadBalancer.java:157)
      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      java.util.concurrent.FutureTask.run(FutureTask.java:264)
      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      java.lang.Thread.run(Thread.java:829)
      

      This is because the LoadBalancer does not pass authentication information when making the request to KIE server (c.f. https://github.com/kiegroup/droolsjbpm-integration/blob/main/kie-server-parent/kie-server-remote/kie-server-client/src/main/java/org/kie/server/client/balancer/LoadBalancer.java#L156)

      Attachments

        Activity

          People

            rhn-support-tkobayas Toshiya Kobayashi
            guiliguili76 Guillaume Lasnier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: