Page MenuHomePhabricator

Tighten Ferret query parsing of empty tokens and empty functions
ClosedPublic

Authored by epriestley on Apr 14 2020, 4:51 PM.
Tags
None
Referenced Files
F19030452: D21106.id.diff
Mon, Nov 24, 9:00 PM
F19019766: D21106.diff
Sun, Nov 23, 3:47 PM
F18828943: D21106.diff
Oct 24 2025, 6:54 PM
F18825603: D21106.id50270.diff
Oct 23 2025, 10:59 PM
F18821149: D21106.id.diff
Oct 22 2025, 7:36 PM
F18817460: D21106.diff
Oct 21 2025, 3:48 PM
F18775616: D21106.id.diff
Oct 10 2025, 7:37 PM
F18745825: D21106.id50277.diff
Oct 3 2025, 9:45 AM
Subscribers
None

Details

Summary

Ref T13509. Certain query tokens like title:="" are currently accepted by the parser but discarded, and have no impact on the query. This isn't desirable.

Instead, require that tokens making an assertion about field content must be nonempty.

Test Plan

Added unit tests, made them pass.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 14 2020, 5:32 PM
This revision was automatically updated to reflect the committed changes.