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
Unknown Object (File)
Wed, Nov 20, 9:20 AM
Unknown Object (File)
Oct 21 2024, 3:36 PM
Unknown Object (File)
Oct 15 2024, 3:34 PM
Unknown Object (File)
Oct 15 2024, 3:34 PM
Unknown Object (File)
Oct 15 2024, 3:33 PM
Unknown Object (File)
Oct 15 2024, 3:12 PM
Unknown Object (File)
Oct 15 2024, 3:12 PM
Unknown Object (File)
Oct 9 2024, 1:18 PM
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.