Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-9739

It was not possible to enter the User Dashboard after user authorization had expired

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Workaround Exists
      • Use browser's incognito mode
      • Use another browser
      • Clean up browser's cache and local data

      Description of problem:

      Workaround

      Prerequisites (if any, like setup, operators/versions):

      Steps to Reproduce

      1. Install Dev Spaces 3.25.0-RC.12.01 on OpenShift 4.20
      2. Go to User Dashboard in Google Chrome
      3. Switch to the another tab and leave User Dashboard page opened for several hours until user authorization is expired.
      4. Switch back to the User Dashboard and refresh the page.

      Actual results:

      User Dashboard showed error page with "Unauthorized" error.
      Refresh of page in tab had no affect.

      There were error messages in console:

      Fetch event handler is recognized as no-op. No-op fetch handler may bring overhead during navigation. Consider removing the handler if possible.
      8Unchecked runtime.lastError: The page keeping the extension port is moved into back/forward cache, so the message channel is closed.
      api/kubernetes/namespace/provision:1  Failed to load resource: the server responded with a status of 401 (Unauthorized)
      client.90627b34.js:1 Retrying request to /api/kubernetes/namespace/provision in 500 ms, 3 left
      doRetryFunc @ client.90627b34.js:1
      api/kubernetes/namespace/provision:1  Failed to load resource: the server responded with a status of 401 (Unauthorized)
      client.90627b34.js:1 Retrying request to /api/kubernetes/namespace/provision in 1000 ms, 2 left
      doRetryFunc @ client.90627b34.js:1
      api/kubernetes/namespace/provision:1  Failed to load resource: the server responded with a status of 401 (Unauthorized)
      client.90627b34.js:1 Retrying request to /api/kubernetes/namespace/provision in 2000 ms, 1 left
      doRetryFunc @ client.90627b34.js:1
      api/kubernetes/namespace/provision:1  Failed to load resource: the server responded with a status of 401 (Unauthorized)
      client.90627b34.js:1 UD: preload data failed. Q
      

      Screencast: screen-capture (31).webm

      It was possible to enter User Dashboard in incognito mode of Google Chrome, and another browser.

      Expected results:

      User has been redirected to the OpenShift authorization page.

      Reproducibility (Always/Intermittent/Only Once):

      Intermittent

      Acceptance criteria: 

      Definition of Done:

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      Google Chrome version: Version 142.0.7444.175 (Official Build) (64-bit) on Fedora OS

      The was no authorization errors in the devspaces pod.

      It could be related to the issue https://issues.redhat.com/browse/CRW-9660
       

       *

              oorel Oleksii Orel
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: