You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Finding title search misses non-ASCII matches on SQLite: case folding is ASCII only #4001
get_findings_async filters by title through FindingEntry.title.ilike(...), which compiles to lower(title) LIKE lower(pattern) on SQLite, and SQLite's lower() only folds ASCII letters. A finding titled CAFÉ security review is found when searching CAFÉ but missed when searching café, while the same data on Azure SQL matches both directions.
This is the same class as the seed value search issue fixed for value_search, which now folds through the Unicode-aware UnicodeCaseFold on both sides for exactly this reason.
Steps to reproduce
Create an operation and add a finding whose title contains a non-ASCII uppercase letter, for example CAFÉ security review.
Search the operation's findings with title_query="café" through get_findings_async on SQLite.
The finding is not returned; searching CAFÉ returns it.
Expected behavior
The title search should fold non-ASCII letters the same way on both backends, matching what the seed value search and the harm category filters already do.
Activity