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

DevWorkspace Dashboard doesn't handle 401 server error after user session is expired

    XMLWordPrintable

Details

    • False
    • False
    • Hide
      = Empty page after the user session expires

      Currently, a {prod-short} instance might display an empty page after the user session expires. There is currently no workaround for this issue.
      Show
      = Empty page after the user session expires Currently, a {prod-short} instance might display an empty page after the user session expires. There is currently no workaround for this issue.
    • Documented as Known Issue

    Description

      CRW 2.15.0.ER-01-27 instance installed from 'tech-preview' operator channel with DevWorkspace engine enabled by default, returned empty page after user session is expired (401) inside CRW application.

      Keycloak initialization failed.  Error: Failed to get response to API endpoint: 
      Error: Request to "/api/user" failed:Error: Request failed with status code 401
          at f.start (client.f72c867f5e8050b6a16e.js:1:4048)
          at async client.f72c867f5e8050b6a16e.js:1:113161
      ...
      TypeError: Cannot read properties of undefined (reading 'email')
      

      Metadata:

      • codeready-workspaces-operator-bundle-container-2.15-248
      • Index image v4.9: registry-proxy.engineering.redhat.com/rh-osbs/iib:166463

      CRW instance:

      OCP version: 4.9.

       

      Refresh of browser's tab didn't help.

      It hadn't been reproduced in che-server mode when DW was disabled, because in-built keycloak had redirected to OCP OAuth page.

      Attachments

        Issue Links

          Activity

            People

              oorel Oleksii Orel
              dnochevn Dmytro Nochevnov
              Fabrice Flore-Thébault Fabrice Flore-Thébault
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: