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

CHE-server factory resolver returns an invalid autogenerated devfile #22791

Open
olexii4 opened this issue Jan 25, 2024 · 0 comments
Open

CHE-server factory resolver returns an invalid autogenerated devfile #22791

olexii4 opened this issue Jan 25, 2024 · 0 comments
Assignees
Labels
area/che-server kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@olexii4
Copy link
Contributor

olexii4 commented Jan 25, 2024

Describe the bug

We cannot create a new workspace from the long git repo URL if it does not have a devfile. CHE-server factory resolver returns an autogenerated devfile that includes an invalid project name with a length of more than 63 characters.

Che version

next (development version)

Steps to reproduce

  1. Create a new workspace with the next link:
{CHE-server}#https://github.com/olexii4/che-editor-theiahkhjkhkjhkjhjhghjhgfghfhgfhgjfghfghjfghjfhgfghfghjfhgfghfhgjfhgjfhg
  1. We will have a warning message 'Failed to fetch resources. Devfile schema validation failed. Error: 0: instance.projects[0].name does not meet maximum length of 63'
    Знімок екрана 2024-01-25 о 15 56 23

Expected behavior

A new workspace should created without any warnings.

Runtime

OpenShift

Screenshots

No response

Installation method

chectl/next

Environment

Linux

Eclipse Che Logs

No response

Additional context

che-server response includes not valid project name che-editor-theiahkhjkhkjhkjhjhghjhgfghfhgfhgjfghfghjfghjfhgfghfghjfhgfghfhgjfhgjfhg with 83 character length. So, It is not a valid devfile object.

Знімок екрана 2024-01-24 о 16 12 01

{
  "v": "4.0",
  "source": "repo",
  "devfile": {
    "metadata": {
      "generateName": "che-editor-theiahkhjkhkjhkjhjhghjhgfghfhgfhgjfghfghjfghjfhgfghfghjfhgfghfhgjfhgjfhg"
    },
    "projects": [
      {
        "name": "che-editor-theiahkhjkhkjhkjhjhghjhgfghfhgfhgjfghfghjfghjfhgfghfghjfhgfghfhgjfhgjfhg",
        "source": {
          "location": "https://github.com/olexii4/che-editor-theiahkhjkhkjhkjhjhghjhgfghfhgfhgjfghfghjfghjfhgfghfghjfhgfghfhgjfhgjfhg.git",
          "type": "github"
        }
      }
    ],
    "apiVersion": "1.0.0"
  }
}
@olexii4 olexii4 added the kind/bug Outline of a bug - must adhere to the bug report template. label Jan 25, 2024
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jan 25, 2024
@olexii4 olexii4 changed the title CHE-server factory resolver returns invalid autogenerated devfile CHE-server factory resolver returns an invalid autogenerated devfile Jan 25, 2024
@AObuchow AObuchow added kind/bug Outline of a bug - must adhere to the bug report template. and removed kind/bug Outline of a bug - must adhere to the bug report template. status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jan 30, 2024
@olexii4 olexii4 closed this as completed Feb 21, 2024
@olexii4 olexii4 reopened this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-server kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

4 participants