Uploaded image for project: 'SonarLint Core Library'
  1. SonarLint Core Library
  2. SLCORE-275

Analysis should not fail when an issue message has a NULL character

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.13
    • Component/s: Core
    • Labels:
      None

      Description

      Scanner fails when an issue is generated with a message containing the NULL character. That can occur when the issue message includes source code:

      Character \u0000 is not supported in issue message "Refactor this SQL query to prevent doing a full table scan due to the '%%' value of the "LIKE" condition' on component: SOURCE/FOO/bar.cbl`
      

      Making the scanner fail impacts negatively user experience, especially when null characters are supported by compilers (Cobol for instance). The behavior of scanner should be changed by replacing NULL characters \u0000 with the text "[NULL]" (6 characters).

      SeeĀ https://discuss.sonarsource.com/t/cobol-low-values-in-issue-messages/5010/4

      SonarLint should apply the same strategy in order to have a good issue tracking in connected mode (issues are matched using the issue message).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: