Bug: Evergreen search uses fragile JSON LIKE query #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Audit Finding M-2
Severity: Medium
Issue:
processEvergreen()finds evergreen articles usingattribs LIKE '%mokojoomcross_evergreen":"1"%'. This is fragile — it could match false positives if the string appears in article content, and breaks if JSON key ordering changes.Fix: Use MySQL
JSON_EXTRACT()function:JSON_EXTRACT(attribs, '$.mokojoomcross_evergreen') = '1'.Files:
QueueProcessor.phpLabel:
priority: medium,type: bugBranch created:
feature/101-bug-evergreen-search-uses-fragile-json-l