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

Wrong line checksum on blank lines after migration to 5.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.1
    • Component/s: Issues, Scanner
    • Labels:
      None

      Description

      The FileSource migration is buggy and generate wrong checksum for lines that contains only whitespaces. All issues reported on those lines will not be tracked (ie will be closed and opened as new issue). This may also break block move tracking so other issues on close lines may also failed to be tracked.

      http://sonarqube.15.x6.nabble.com/New-issues-are-created-although-they-existed-before-td5033186.html

      Migration will be fixed in 5.1 but for people having migrated to 5.0 or 5.0.1 data is already migrated and should be fixed with query:

      UPDATE file_sources SET line_hashes = REPLACE(line_hashes, 'd41d8cd98f00b204e9800998ecf8427e', '')
      

        Attachments

          Activity

            People

            • Assignee:
              henryju OLD - Julien HENRY
              Reporter:
              henryju OLD - Julien HENRY
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: