[BUG] Add the validation for zip file or unsupported format indicating reason for failure #236
Closed
1 task done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
Indicates an issue or PR lacks a `priority/foo` label and requires one.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Milestone
Is there an existing issue for this?
Konveyor version
latest
Priority
Major
Current Behavior
Ran an analysis using zip file ex:
$ ./kantra analyze --input=/home/user/sample.daytrader7-master.zip --output=~/output_dir
panic: runtime error: index out of range [0] with length 0 goroutine 1 [running]: github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).RunProviders(0xc00024e780, {0xec4f88, 0xc000035e50}, {0xc0003d3890, 0x10}, {0xc0003d38e0, 0x10}, {0xc0001e1a60, 0x0, 0x0}, ...) /workspace/cmd/analyze.go:799 +0x7b7 github.com/konveyor-ecosystem/kantra/cmd.NewAnalyzeCmd.func2(0xc00029e600, {0xc000296d80?, 0x4?, 0xd61a61?}) /workspace/cmd/analyze.go:171 +0x6e5 github.com/spf13/cobra.(*Command).execute(0xc00029e600, {0xc000296d20, 0x3, 0x3}) /go/pkg/mod/github.com/spf13/[email protected]/command.go:983 +0xabc github.com/spf13/cobra.(*Command).ExecuteC(0x146d580) /go/pkg/mod/github.com/spf13/[email protected]/command.go:1115 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) /go/pkg/mod/github.com/spf13/[email protected]/command.go:1039 github.com/spf13/cobra.(*Command).ExecuteContext(...) /go/pkg/mod/github.com/spf13/[email protected]/command.go:1032 github.com/konveyor-ecosystem/kantra/cmd.Execute() /workspace/cmd/root.go:66 +0x10c main.main() /workspace/main.go:8 +0xf
Expected Behavior
At the end of analysis reason for failure or error.log in the ouptput dir ad output directory remains empty
How Reproducible
Always (Default)
Steps To Reproduce
No response
Environment
- OS:
Anything else?
Jira link too https://issues.redhat.com/browse/MTA-2822
The text was updated successfully, but these errors were encountered: