Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-16100

Analysis computation errror when a reference branch is used and a file is not under scm control

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.3
    • Fix Version/s: 9.4
    • Component/s: Compute Engine
    • Labels:
      None
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      Error IndexArrayOutOfBoundIndex exception during CE computation

      Steps to reproduce:

      1. analyse master with file which is not under scm control
      2. create feature branch
      3. create a file with the same name on feature branch which is not under scm control, file should have fewer lines than the one on master
      4. scan feature branch
      5. modify file on feature branch to be exact the same as the one on master
      6. scan feature
      7. error occurred

      Workaround:

      • exclude files which are not under scm control if possible

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              jacek.poreda Jacek Poreda
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: