-
Bug
-
Resolution: Done
-
Major
-
3.2.0.GA
-
None
-
False
-
None
-
False
-
-
Description of problem:
After configuring Dev Spaces to ** utlize Github Oauth, when a user attempts to create a workspace by using the UI with a reference to a git rep with devfile.yaml in the parent directory, it fails to find the devfile and just creates an empty workspace.
When using a raw devfile with an token appended to it, it will succeed.
Prerequisites (if any, like setup, operators/versions):
Default operator configuration used. Dev Spaces project is openshift-devspaces
Steps to Reproduce
- Install Dev Spaces
- Create Github oauth as defined in the [admin guide https://access.redhat.com/documentation/en-us/red_hat_openshift_dev_spaces/3.2/html-single/administration_guide/index#oauth-for-github-gitlab-or-bitbucket with additional configuration of Enterprise github url (secret attached)
- User navigates to dashboard
- Clicks add workspace
- Inputs a private repo url https://github.xxx.com/private-repo.git and clicks create
Actual results:
1. Error message saying Devfile could not be found (attached image)oauth-secret.yamlworkspace-secret.yaml
Default workspace
devspaces pod log
2022-11-18 23:20:40,334[nio-8080-exec-3] [WARN ] [o.e.c.w.i.o.p.OpenShiftProject 258] - Trying to get namespace 'user3-dev-spaces', but failed because the lack of permissions.
2442022-11-18 23:20:41,569[nio-8080-exec-3] [WARN ] [o.e.c.s.oauth.EmbeddedOAuthAPI 167] - Unsupported OAuth provider bitbucket
2452022-11-18 23:21:26,104[nio-8080-exec-3] [WARN ] [o.e.c.s.oauth.EmbeddedOAuthAPI 167] - Unsupported OAuth provider bitbucket
2462022-11-18 23:21:28,078[nio-8080-exec-6] [WARN ] [o.e.c.s.oauth.EmbeddedOAuthAPI 167] - Unsupported OAuth provider bitbucket
dashboard pod log
Unexpected error null
1930Unexpected error null
1931Unexpected error null
1932Unexpected error null
1933Unexpected error null
1934Unexpected error null
1935Unexpected error null
1936Unexpected error null
1937Unexpected error null
1938Unexpected error null
1939Unexpected error null
1940Unexpected error null
1941Unexpected error null
Expected results:
devfile.yaml found and workspace created that uses devfile.yaml config
Reproducibility (Always/Intermittent/Only Once):
Always
Build Details:
Dev Spaces 3.2
Dashboard Version7.52.1
Server Version3.2 @ 715ee #20 ::
Eclipse Che Dashboard 7.52.0 @ 7108
Username: kmcanoy
Browser Nameedge-chromium
Browser Version107.0.1418
Browser OSWindows 10