Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-723

Extra URL request made in Console Plugin

    • False
    • None
    • False
    • Moderate

      When it displays the flow table, it makes an extra URL request.  To reproduce:

      Go to Observe > Network Traffic.  Select to view the flow table.  Bring up JavaScript console and select the "Network" panel.  Clear the entries.  Click the Console's refresh icon to update the flow table.

      It will show two "filters" request.  The first one returns the status code 301 Moved Permanently.  The second one is successful with status code 200.

      The reason is because the first URL request has an extra forward slash.  Example:

      1st URL: https://console-openshift-console.apps.jpinsonn-netobserv.llc.devcluster.openshift.com/api/proxy/plugin/netobserv-plugin/backend//api/loki/flows?filters=&limit=100&reporter=destination&timeRange=300

      2nd URL: https://console-openshift-console.apps.jpinsonn-netobserv.llc.devcluster.openshift.com/api/proxy/plugin/netobserv-plugin/backend/api/loki/flows?filters=&limit=100&reporter=destination&timeRange=300

      If you look carefully, the 1st URL has an extra slash in "//api".

            stlee@redhat.com Steven Lee
            stlee@redhat.com Steven Lee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: