MISP icon indicating copy to clipboard operation
MISP copied to clipboard

Bug: Filters are not working for Contributor Top List ( Orgs and Users ) Widgets

Open ahmedxuae91 opened this issue 2 years ago • 3 comments

Expected behavior

allow filtering results based on custom JSON such as the below: {"days":"7d"}

Actual behavior

showing all results instead of showing results matching JSON filters.

Steps to reproduce

1- Dashboard 2- Add widget 3- Select Contributor Top List Users 4- Add this filter: {"days":"7d"} 5- Click Submit

Version

2.4.137

Operating System

Ubuntu

Operating System version

20.04

PHP version

7.4

Browser

Chrome

Browser version

No response

Relevant log output

No response

Extra attachments

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ahmedxuae91 avatar Aug 06 '23 19:08 ahmedxuae91

As a first measure I would suggest you to update your MISP instance and try again. Version 2.4.137 is extremely old and several bug and security fixes were introduced since then

righel avatar Aug 31 '23 07:08 righel

@righel I also have this issue for the newest version of MISP currently. I've tried multiple filters, they all fail.

Also all values for some reason are wrapped in double quotes, instead of being boolean 👎🏻

lnfernux avatar Feb 09 '24 13:02 lnfernux

For some more context, I tried the same filter as above, and I've also tried to filter out based on creator user (some API/SYNC users that shouldn't be added):

{
   "filter": {
      "email": ["[email protected]"],
      "event_creator_email": ["[email protected]"]
   }
}

lnfernux avatar Feb 09 '24 13:02 lnfernux