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)
Sat, Dec 21, 1:27 AM
Unknown Object (File)
Fri, Dec 20, 2:11 PM
Unknown Object (File)
Thu, Dec 19, 12:30 AM
Unknown Object (File)
Mon, Dec 16, 4:06 AM
Unknown Object (File)
Fri, Dec 13, 8:16 AM
Unknown Object (File)
Tue, Nov 26, 1:23 PM
Unknown Object (File)
Tue, Nov 26, 8:34 AM
Unknown Object (File)
Nov 23 2024, 12:46 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.