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
F13988726: D21106.diff
Mon, Oct 21, 3:36 PM
F13963390: D21106.id.diff
Tue, Oct 15, 3:34 PM
F13963389: D21106.id50270.diff
Tue, Oct 15, 3:34 PM
F13963384: D21106.id50277.diff
Tue, Oct 15, 3:33 PM
F13963305: D21106.diff
Tue, Oct 15, 3:12 PM
F13963304: D21106.diff
Tue, Oct 15, 3:12 PM
Unknown Object (File)
Oct 9 2024, 1:18 PM
Unknown Object (File)
Sep 4 2024, 4:56 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.