-
Notifications
You must be signed in to change notification settings - Fork 244
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
"odo registry add" adds registry for invalid url in devfileV2 #3451
Comments
Even I tried with
This looks something weird to me. |
This shouldn't be a high priority. /remove-priority high We intentionally don't validate that the registry is accessible and in I think that
We definitely don't want to check if URL is available or not in But it might make sense to add format validation that would check for proper URL format. |
We can maybe do some basic URL validation using |
Regarding arguments/flags validation, the design is that we divide the validation into two stages: That design is based on @prietyc123 In short, all the inaccessible/invalid URL will be detected/validated when users use the URL by running |
I don't find it a valid url as it contains
Yes, for such kind of urls we should add some format validation. Also we can consider to exclude those url which has some special meaning like
+1 |
@mik-dass We do have the URL validation function here: https://github.com/openshift/odo/blob/master/pkg/util/util.go#L1139, it uses Regarding the discussion above, based on the current RFC https://www.ietf.org/rfc/rfc3986.txt, I agree with @kadel, this URL My suggestion is that we can add the code that excluding the reserved character for the essential components to our existing basic URL format validation. |
/kind bug
What versions of software are you using?
Operating System:
All
Output of
odo version
:master
How did you run odo exactly?
Steps to reproduce:
odo preference set Experimental true
odo registry add wRegistry "http://api.google.com/q?exp=a|b"
with invalid urlodo registry list
Actual behavior
Expected behavior
odo registry add
should throw error for invalid urlAny logs, error output, etc?
Manually verified.
The text was updated successfully, but these errors were encountered: