HomePhorge

Tighten Ferret query parsing of empty tokens and empty functions

Description

Tighten Ferret query parsing of empty tokens and empty functions

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.

Maniphest Tasks: T13509

Differential Revision: https://secure.phabricator.com/D21106

Details

Provenance
epriestleyAuthored on Apr 14 2020, 8:47 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP471e89a8b76d: Add "uri" to "paste.search" API output
Branches
Unknown
Tags
Unknown

Event Timeline