Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 5417: An empty annotation value does not match (#1896)
Helpers may return annotations with empty values: OK team_="" A note ACL may be configured to match an annotation with an empty value: configuration_includes_quoted_values on acl emptyTeam note team_ "" However, that emptyTeam ACL did not match the above helper annotation: * AppendTokens() split an empty annotation value into an empty vector instead of a vector with a single empty entry. That "never match an empty value received from the helper" bug was probably introduced in 2017 commit 75d4734 when it replaced an "always try to match an empty value, even when it was not received from the helper" bug in ACLNoteStrategy::matchNotes(). * ACLStringData::match(SBuf v) never matched an empty value v. That bug was probably introduced in 2015 commit 76ee67a that mistook a nil c-string pointer for an empty c-string.
- Loading branch information