Uploaded image for project: 'ContentBox Modular CMS'
  1. CONTENTBOX-1085

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

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Gpickin Gavin Pickin
                Reporter:
                Gpickin Gavin Pickin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: