Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory in Theia doesn't clone project on OSIO #11144

Closed
garagatyi opened this issue Sep 10, 2018 · 0 comments
Closed

Factory in Theia doesn't clone project on OSIO #11144

garagatyi opened this issue Sep 10, 2018 · 0 comments
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@garagatyi
Copy link

Description

Factory in Theia doesn't clone project on OSIO.
Looks like the reason is that Theia doesn't provide a token and is not allowed to get Workspace config.
After discussing it with @olexii4 and @akurinnoy it seems that Theia has no authentication when it calls Che master APIs.
Looks like we really need to address this issue.

Errors in the browser console:

GET https://che.openshift.io/api/workspace/workspacek7t178ezhntpyig4 401 ()
Uncaught (in promise) i {name: "Error", message: "Request failed with status code 401", config: {…}, request: XMLHttpRequest, response: {…}}                                         theia-machines-frontend-module.ts:40
https://che.openshift.io/api/factory/factory967oa85pfl0qkftf 401 ()                                                
Uncaught (in promise) Error: Request failed with status code 401
    at e.exports (createError.js:16)
    at e.exports (settle.js:18)
    at XMLHttpRequest.f.(route8jqfz4y3-ogaragat-che.8a09.starter-us-east-2.openshiftapps.com/anonymous function) (https://route8jqfz4y3-ogaragat-che.8a09.starter-us-east-2.openshiftapps.com/bundle.js:36:14668)

Reproduction Steps

  1. Apply factory

Expected:
Project is cloned

Actual:
The project is not cloned, no error appear.

OS and version:

Diagnostics:

@garagatyi garagatyi added kind/bug Outline of a bug - must adhere to the bug report template. team/ide2 labels Sep 10, 2018
@l0rd l0rd mentioned this issue Sep 10, 2018
57 tasks
@sunix sunix self-assigned this Sep 12, 2018
sunix added a commit to eclipse/che-theia-factory-extension that referenced this issue Sep 13, 2018
eclipse-che/che#11144

Signed-off-by: Sun Seng David TAN <sutan@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants