Sweep value || default truthy-empty-struct traps over DB-loaded values #48
Labels
No labels
bug
ci-cd
client
epic:security-hardening
feature
optimization
priority:high
priority:low
priority:medium
server
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
BlackLobster/Server#48
Loading…
Reference in a new issue
No description provided.
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?
Problem
db_value || defaultusesdefaultonly whendb_valueisnil/false— but a present-but-empty%{}/struct is truthy, so the wrong (empty) value is used. Already bit us once (do_spawnempty appearance → broken encode → bot silently dropped; see thebotgen_skeleton_appearance_fast_restartnote).Task
Grep for
||/Map.get(.., key) ||patterns over DB-loaded values and replace with explicit emptiness checks where an empty map/list/struct is a valid-but-wrong value.Acceptance
Part of the Security & Data-Integrity Hardening epic.