You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parseImportURLArg in cmd/import_url.go only parses the :mainArtifact:secret suffix when the input starts with http:// or https://. If it doesn't, there's no else, the string just passes through unchanged and gets sent straight to mc.DownloadArtifact(...), which then fails with an unrelated, confusing error.
How to Reproduce?
./microcks import-url "spec.yaml:true:mysecret"
Actual behavior
Expected behavior
Something like:
Error: invalid artifact URL 'spec.yaml:true:mysecret': must start with http:// or https://
Fix for this would be to validate the scheme at the top of parseImportURLArg and return an error instead of silently falling through, then propagate it in RunE.
Hey @Harsh4902
I'm thinking of picking up #534. I'll check the current implementation, make the fix and add tests. Let me know if there's anything I should consider before starting.
Hey @Harsh4902 , sorry for the delay, I've been busy with college work for the past two weeks and couldn't get time to look into this. I see @dipak0000812 has made a PR (#560). I've checked it and it looks fine to me.
Activity
Vaishnav88sk commentedon Sep 19, 2026
Valid ✔️ ; thank you for reporting.
Harsh4902 commentedon Sep 22, 2026
@Syedowais312 Feel free to raise PR for this.
dipak0000812 commentedon Sep 29, 2026
Hey @Harsh4902
I'm thinking of picking up #534. I'll check the current implementation, make the fix and add tests. Let me know if there's anything I should consider before starting.
Syedowais312 commentedon Sep 30, 2026
Hey @Harsh4902 , sorry for the delay, I've been busy with college work for the past two weeks and couldn't get time to look into this. I see @dipak0000812 has made a PR (#560). I've checked it and it looks fine to me.