Preflight check has a race condition where duplicate settings can be inserted and stop app from starting

Description

If a weird cache race condition is found, where ContentBox thinks there are no settings in the DB,, the Preflight check would insert 135 duplicate settings, causing every ORM findWhere to return more than 1 record for a setting name, stopping ColdBox from Initiliazing, resulting in many strange and not so wonderful errors.

We need to add a unique setting to the ORM model, and add the CBValidation for more helpful validation of this model.

https://github.com/Ortus-Solutions/ContentBox/pull/430

Status

Assignee

Gavin Pickin

Reporter

Gavin Pickin

Labels

None

Fix versions

Priority

Major
Configure