Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-3290

[CLI] camel-cbr app analysis fails with index out of range error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.1.0
    • MTA 7.1.0
    • MTA CLI
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

      camel-cbr app analysis fails with index out of range error

      Version-Release number of selected component (if applicable):

      Bundle 7.1.0-24 

      How reproducible:

      100% 

      Steps to Reproduce:
      1. Download app
      2. Run analysis with command like

      /home/igor/bin/mta-cli analyze --overwrite --input /home/igor/github.com/kantra-cli-tests/data/applications/camel-cbr --output /home/igor/MTA/reports --source camel2 --target camel4
      

      Actual results:

      Analysis fails with error:

      panic: runtime error: index out of range [0] with length 0
      
      goroutine 1 [running]:
      github.com/konveyor-ecosystem/kantra/cmd.(*analyzeCommand).RunAnalysis(0xc0002a4000, {0xebca00, 0xc0000a9db0}, {0x0, 0x0}, {0xc0004c07c0, 0x10})
              /remote-source/mta-cli/app/cmd/analyze.go:1435 +0x1c48
      github.com/konveyor-ecosystem/kantra/cmd.NewAnalyzeCmd.func2(0xc0002a0600, {0xc0001c9ef0?, 0x4?, 0xd59fa4?})
              /remote-source/mta-cli/app/cmd/analyze.go:253 +0x54e
      github.com/spf13/cobra.(*Command).execute(0xc0002a0600, {0xc0001c9e60, 0x9, 0x9})
              /remote-source/mta-cli/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0xabc
      github.com/spf13/cobra.(*Command).ExecuteC(0x1467620)
              /remote-source/mta-cli/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
      github.com/spf13/cobra.(*Command).Execute(...)
              /remote-source/mta-cli/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039
      github.com/spf13/cobra.(*Command).ExecuteContext(...)
              /remote-source/mta-cli/deps/gomod/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1032
      github.com/konveyor-ecosystem/kantra/cmd.Execute()
              /remote-source/mta-cli/app/cmd/root.go:66 +0x10c
      main.main()
              /remote-source/mta-cli/app/main.go:8 +0xf
      

      Expected results:

      Analysis should be completed 

      Additional info:
      This app is a customer app and command to run analysis was sent to us by customer as well. It worked fine on 7.0.3, but fails on 7.1.0

              emcmulla@redhat.com Emily McMullan
              ibragins@redhat.com Igor Braginsky
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: