Skip to content

The workspace should start even if che-server fails to resolve the devfile #21997

@l0rd

Description

@l0rd

Is your enhancement related to a problem? Please describe

If I try to start a workspace from a private repository but OAuth is not supported (e.g. the repo is AzureDevOps) and I get the following error:

Error occurred during creation a workspace from devfile located at `<repo-url>`. Cause: Neither of `apiVersion` or `schemaVersion` found. This is not a valid devfile.

The message is confusing because it looks like Che was able to retrieve a Devfile but it was invalid.
And it's not possible to start the workspace although

Describe the solution you'd like

The message should rather be something like:

::Warning::
Looking for a Devfile in the git repository failed. The git server API may not supported by Eclipse Che (or the git server hasn't been configured appropriately).

Note that the git cloning of the repository will succeed if it's public or it's private and the developer git credentials secret has been configured.

Click to continue

Additional context

image

Metadata

Metadata

Assignees

Labels

area/dashboardarea/factory/dashboardIssues related to factories frontend (che user dashboard side)kind/enhancementA feature request - must adhere to the feature request template.new&noteworthyFor new and/or noteworthy issues that deserve a blog post, new docs, or emphasis in release notesseverity/P1Has a major impact to usage or development of the system.sprint/currentstatus/release-notes-review-neededIssues that needs to be reviewed by the doc team for the Release Notes wording

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions