Filters with invalid filter expressions are still created #2033

Closed
opened 2026-03-22 13:51:53 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @Ma27 on GitHub (Nov 13, 2024).

Description

To reproduce:

  • Create a new saved filter with name "Foo"
  • Set the expression to syntax = error
  • When hitting the create button, you'll get an error that the expression is invalid and the create modal doesn't close.

However, a filter called Foo is created regardless.
This means if it takes 5 attempts to produce a valid filter, I'll have 5 filters called Foo created.

I'd expect no filter to be created given the error.

Vikunja Version

whatever is on try.vikunja.io

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

Originally created by @Ma27 on GitHub (Nov 13, 2024). ### Description To reproduce: * Create a new saved filter with name "Foo" * Set the expression to `syntax = error` * When hitting the create button, you'll get an error that the expression is invalid and the create modal doesn't close. However, a filter called `Foo` is created regardless. This means if it takes 5 attempts to produce a valid filter, I'll have 5 filters called `Foo` created. I'd expect no filter to be created given the error. ### Vikunja Version whatever is on try.vikunja.io ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
GiteaMirror added the bug label 2026-03-22 13:51:53 -05:00
Author
Owner

@kolaente commented on GitHub (Nov 18, 2024):

Fixed in bd3eab8c34, please check with the next unstable build (should be ready for deployment in ~45min, also on try).

@kolaente commented on GitHub (Nov 18, 2024): Fixed in bd3eab8c340c6b465ddb50bafa169aebc5d9de8d, please check with the next unstable build (should be ready for deployment in ~45min, also on [try](https://try.vikunja.io)).
Author
Owner

@Ma27 commented on GitHub (Nov 18, 2024):

Looks correct now on try.vikunja.io, thanks!

Guess I'll just update my vikunja, using master anyways with the PRs from me on top and have regular backups just in case ;-)

@Ma27 commented on GitHub (Nov 18, 2024): Looks correct now on try.vikunja.io, thanks! Guess I'll just update my vikunja, using master anyways with the PRs from me on top and have regular backups just in case ;-)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#2033