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

Querying filesystem using hasFilename or hasExtension in a module Sensor returns files of other modules

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.7.7, 7.9.1
    • Fix Version/s: None
    • Component/s: Plugin API, Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      In SONAR-8630 2 new predicates have been introduced. But the implementation of the cache is not correctly isolated by module.

       

      moduleA/
        src/package1/Foo.java
      moduleB/
        src/package2/Foo.java 

      When a (module) Sensor runs on moduleA, querying files with hasFilename("Foo.java") or hasExtension("java") should return only one file, but the two files are returned.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: