question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot create a factory from repository (without devfile) that has uppercase characters in name

See original GitHub issue

Describe the bug

Cannot create a factory from repository(without devfile) that has uppercase characters in name. There are restrictions: Unable to create devworkspace: DevWorkspace.workspace.devfile.io "TestRepo" is invalid: metadata.name: Invalid value: "TestRepo": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')

Che version

other (please specify in additional context)

Steps to reproduce

  1. Try to create a factory from repository(without devfile) that has uppercase characters in name, for example from this - https://github.com/SkorikSergey/TestRepo.

Expected behavior

Workspace created and started successfully.

Suggested behaviour change is that the factory / devworkspace engine will sanitize the input GH repo name to make it compliant with OCP naming rules.

Runtime

OpenShift

Screenshots

Selection_005

Installation method

OperatorHub

Environment

Linux

Eclipse Che Logs

No response

Additional context

Eclipse Che 7.47.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
l0rdcommented, Apr 20, 2022

This is not a blocker because it’s a corner case: there is no devfile, the repo name has uppercase letters. But if it’s an easy fix and there is no risk to postpone the release let’s include that.

0reactions
ibuziukcommented, May 25, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to create application because name contains ... - GitHub
NPM packages are not allowed upper case characters in their name, seemingly because unix filesystems are case-sensitive, which creates "a ...
Read more >
Create a repository with repo display name with uppercase ...
I know that there is possibility to use uppercase in display name.So, I need displayname as Repo2 and repo name as repo2.How to...
Read more >
connect to bucket having uppercase letter - Stack Overflow
I am not able to connect to a bucket if the bucket name has a Upper case letter. I have several buckets those...
Read more >
Text always types in uppercase letters in AutoCAD
Issue: When typing text in AutoCAD, it is always uppercase. Holding down the shift key produces lowercase letters, which is opposite normal ...
Read more >
Cannot query Postgres database that has column names with ...
Drupal's Postgres driver does not quote the table/column/alias identifiers, so Postgres creates them in lowercase and also fails to query them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found