Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3380

Sourcemap for JSP can have multiple input files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: JSP, UCFG
    • Labels:
      None

      Description

      When JSP page contains include like 

      <%@ include file="include.jsp"%> 

      created source map will contain multiple input files in the file section, so the assumption that every GeneratedFile  has single JSP InputFile is incorrect.

      Consequently, we will fail to find correct location, because we are looking for the line in the wrong file, if this happens to be empty line with 0 characters, we create invalid text pointer and scanner API will fail with IllegalArgumentException .

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tibor.blenessy Tibor Blenessy
                Reporter:
                tibor.blenessy Tibor Blenessy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: