-
Notifications
You must be signed in to change notification settings - Fork 345
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
[CLI] Kamel run does not check source file exists #1911
Comments
I can work on this if it's confirmed to be a bug. |
It may be a regression, it used to be the case |
* Changed the name of run.isLocal func to run.isLocalAndExists as the function does both things * Added a default switch case to report either the file doesn't exist or the URI scheme cannot be parsed * Added some unit test to verify error messages expected Fixes apache#1911
* Changed the name of run.isLocal func to run.isLocalAndExists as the function does both things * Added a default switch case to report either the file doesn't exist or the URI scheme cannot be parsed * Added some unit test to verify error messages expected Fixes #1911
this issue has milestone 1.3.1 set but it is no tpart of 1.3.x branch Line 383 in ed0456f
Is it planned to backport it? (if it is a regression sounds a good idea) or the milestone needs to be updated? |
Yeah, I will take care of backporting to 1.3 too. |
* Changed the name of run.isLocal func to run.isLocalAndExists as the function does both things * Added a default switch case to report either the file doesn't exist or the URI scheme cannot be parsed * Added some unit test to verify error messages expected Fixes apache#1911
* Changed the name of run.isLocal func to run.isLocalAndExists as the function does both things * Added a default switch case to report either the file doesn't exist or the URI scheme cannot be parsed * Added some unit test to verify error messages expected Fixes #1911
I wonder if this is a desired behavior. When running any integration which is missing the source file (ie
kamel run xyz
where xyz file does not exists), the CLI does not check if the file exists, creating an empty integration. I wonder if this is a bug and we should verify that the file exists and returning an error instead.The text was updated successfully, but these errors were encountered: