special character in project name makes it impossible to filter on the project #502

Closed
opened 2025-11-01 20:57:28 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @RosanneZe on GitHub (May 8, 2025).

Description

Steps to reproduce:

  • Name a project Todo's
  • In a save filter add project = Todo's
  • Get the following error when trying to save:

Error
Invalid task filter value. The task filter value 'Todo's' for field 'project_id' is invalid.

If I remove the ', everything works as expected.

Vikunja Version

v0.24.1-1080-ea1a1843

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

Originally created by @RosanneZe on GitHub (May 8, 2025). ### Description Steps to reproduce: * Name a project `Todo's` * In a save filter add `project = Todo's` * Get the following error when trying to save: Error Invalid task filter value. The task filter value 'Todo's' for field 'project_id' is invalid. If I remove the `'`, everything works as expected. ### Vikunja Version v0.24.1-1080-ea1a1843 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Yes ### Screenshots _No response_
GiteaMirror added the area/filters label 2025-11-01 20:57:28 -05:00
Author
Owner

@kolaente commented on GitHub (May 8, 2025):

Does it work if you quote the title with "?

@kolaente commented on GitHub (May 8, 2025): Does it work if you quote the title with `"`?
Author
Owner

@RosanneZe commented on GitHub (May 8, 2025):

I'm pretty sure I tried that and it didn't work. I wanted to try it on the demo site just now, but weird things are going on on my iPad. If I add a ' or " after the =, it doubles the next letter I type, so "T becomes TT. If I copy paste project = "Todo's" it becomes project = Todoo's" with an extra o!

I'll try again on my work laptop tomorrow.

@RosanneZe commented on GitHub (May 8, 2025): I'm pretty sure I tried that and it didn't work. I wanted to try it on the demo site just now, but weird things are going on on my iPad. If I add a `'` or `"` after the =, it doubles the next letter I type, so `"T` becomes `TT`. If I copy paste `project = "Todo's"` it becomes `project = Todoo's"` with an extra o! I'll try again on my work laptop tomorrow.
Author
Owner

@RosanneZe commented on GitHub (May 9, 2025):

I'm getting the same weird quote behaviour in firefox in Ubuntu, so I can't actually check if quoting works.

@RosanneZe commented on GitHub (May 9, 2025): I'm getting the same weird quote behaviour in firefox in Ubuntu, so I can't actually check if quoting works.
Author
Owner

@kolaente commented on GitHub (Aug 11, 2025):

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

@kolaente commented on GitHub (Aug 11, 2025): Fixed in https://github.com/go-vikunja/vikunja/commit/5651c0b818c4df3d92c9053ef26475239d707640, please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#502