Ericsson / codechecker

CodeChecker is an analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy
https://codechecker.readthedocs.io
Apache License 2.0
2.23k stars 373 forks source link

[web] **ALL** reports shown when the run filter "wildcard pattern" does NOT match ANY runs whatsoever (because typo) #4205

Open whisperity opened 6 months ago

whisperity commented 6 months ago

Describe the bug The web UI returns all the bugs stored in the product when filtering with a run filter that is a wildcard.

CodeChecker version 6.23 release

To Reproduce Steps to reproduce the behaviour:

https://codechecker-demo.eastus.cloudapp.azure.com/Default/reports?run=*llvm-master-csa&is-unique=off&diff-type=New

  1. I filtered for *llvm-master-csa instead of *llvm-master-version_csa because I misremembered the run name pattern (runs created by the CSA-Testbench).
  2. This run wildcard (the only filter) does NOT match any actual runs.
  3. All 1.85M reports are returned. (It does take a while!)

Expected behaviour Exactly 0 reports shown (and preferably this result is calculated quickly). The "baseline" runs are a kind of source, if no sources are "allowed" based on the filters, then nothing should come out of the sources.