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

Workspace URL parameters get lost after user accepts OAuth authorization

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      = Workspace URL parameters missing after accepting OAuth authorization

      Before this update, {prod-short} was missing factory URL parameters after successful OAuth authentication. This resulted in the workspace not starting. With this update, the issue is fixed.
      Show
      = Workspace URL parameters missing after accepting OAuth authorization Before this update, {prod-short} was missing factory URL parameters after successful OAuth authentication. This resulted in the workspace not starting. With this update, the issue is fixed.
    • Bug Fix
    • Done

      Description of problem:

      Devspaces fails to create a workspace after the GitLab oauth process failing with dev file could not be found.

       

       

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

      1. Setup GitLab (v16) as an oauth provider
      2. Create a source code project in GitLab with a devfile in the root directory
      3. Install DevSpaces 3.9.0

      Steps to Reproduce

      1. Set up a project in an on premise GitLab with a devfile in the root directory
      2. Set up GitLab as an oauth provider
      3. Generate a factory url of the format: 
        https://devspaces.xxx.com/#https://gitlab-gitlab.apps.xxx.com/development/my-quarkus-app?che-editor=che-incubator/che-code/insiders&devfilePath=.devfile-vscode.yaml
      4. Click the factory url which DevSpaces will use to load the project
      5. Workspace creation process redirects you to GitLab for authentication.
      6. Redirected back to DevSpaces after successful authentication but fails with attached error.
      7. Deleting workspace and recreating it via the same factory url (does not require oauth again) works fine.

      Actual results:

      Error. Unable to find DevFile

      Expected results:

      DevSpaces should load the workspace and the GitLab source code repository in the IDE.

      Reproducibility (Always/Intermittent/Only Once):

      Always

      Acceptance criteria: 

       

      Definition of Done:

      Build Details:

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

      Error received:

       

      After deletion of workspace and clicking on the factory url again:

       *

        1. DS 3.9.1.RC-11-06_CRW-4955.webm
          21.45 MB
          Dmytro Nochevnov
        2. image-2023-10-24-16-25-15-213.png
          136 kB
          Tyrell Reddy
        3. image-2023-10-24-16-25-54-684.png
          112 kB
          Tyrell Reddy
        4. Screenshot from 2023-10-26 13-49-30.png
          87 kB
          Anatolii Bazko

            oorel Oleksii Orel
            treddy@redhat.com Tyrell Reddy
            Dmytro Nochevnov Dmytro Nochevnov
            Jana Vrbkova Jana Vrbkova
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: