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

api/issues/search returns all issues if provided rule key doesn't exist

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      A search for issues using a filter by rule key specifying a rule that doesn't exist returns all issues. The expected result is to return nothing if the rule doesn't exist, as is the case with other filters.

      To reproduce, get 'api/issues/search?rules=doesnot:exist'.

      The bug might have been introduced in v7.1 (not confirmed).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michal.duda Michal Duda (Inactive)
              Reporter:
              duarte.meneses Duarte Meneses
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: