Skip to content

Notification Filter not working since todays update #1210

@ghc88uk

Description

@ghc88uk

Is there an existing issue for this?

The issue occurs in the following browsers. Select at least 2.

  • Firefox
  • Chrome
  • Edge
  • Safari (unsupported) - PRs welcome
  • N/A - This is an issue with the backend

Current Behavior

I've been using NetAlertX for a long time, way before it changed names. I haven't changed my config for several months and everything was working fine until todays update.

I am now getting pushover notifications through for lots of devices that should be filtered out as per my configuration. In the log I can see this and assume it's related to the issue:

22:23:20 [SafeConditionBuilder] Error parsing condition: Unsupported condition pattern: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
22:23:20 [SafeConditionBuilder] Unsafe condition rejected: AND devLastIP NOT LIKE {s-quote}192.168.50.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.60.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.2{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.5{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.3{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.4{s-quote}, Error: Invalid condition format: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'

Expected Behavior

I shouldn't be receiving notifications for these events as per my configuration.

Steps To Reproduce

Events filter setting:

AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'

app.conf

docker-compose.yml

version: "3"
services:
  pialert:
    container_name: netalertx
    image: "jokobsk/netalertx:latest"
    network_mode: "host"
    restart: unless-stopped
    volumes:
      - /data/compose/3/data/config:/app/config
      - /data/compose/3/data/db:/app/db
      - /data/compose/3/data/logs:/app/front/log
    environment:
      - TZ=Europe/London
      - PORT=20211

What installation are you running?

Production (netalertx)

app.log

22:23:20 [SafeConditionBuilder] Error parsing condition: Unsupported condition pattern: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
22:23:20 [SafeConditionBuilder] Unsafe condition rejected: AND devLastIP NOT LIKE {s-quote}192.168.50.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.60.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.2{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.5{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.3{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.4{s-quote}, Error: Invalid condition format: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'

Debug enabled

  • I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Docker 🐋Docker relatedbug 🐛Something isn't workingnext release/in dev image 🚀This is coming in the next release or was already released if the issue is Closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions