crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

Bug/Local API: `include_scenarios_containing` works only for the latest decision

Open AlteredCoder opened this issue 3 years ago • 0 comments

Describe the bug Currently, when we have multiple decisions concerning an IP address (with different scenarios), and when we query the local API to get decisions with scenarios_containing, it will returns the IP address only if the decisions with the longest duration match the scenario filter.

To Reproduce

  1. cscli decisions add -i 1.2.3.4 --reason test
  2. cscli decisions add -i 1.2.3.4 --reason test1234
  3. Query the local API with scenarios_containing=test and you will not receive decisions from the local API

Expected behavior Getting the decisions whatever the decision duration

Technical Information (please complete the following information):

  • Version: v1.3.4

AlteredCoder avatar May 20 '22 13:05 AlteredCoder