Uploaded image for project: 'ColdBox Platform'
  1. COLDBOX-712

ColdBox shutdown code that uses CF mappings for modules fails on fwreinit

    Details

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

      Description

      If a module's onUnload tries to do anything that uses a CF mapping for that module such as asking WireBox for a CFC instance, it will error when you fwreinit. This is because the ColdBox bootstrap calls reloadChecks() BEFORE it adds module mappings. We need to load up module mappings prior to shutting down the framework so that all shutdown code can work correctly.

      To reproduce this, install cbelasticsearch and fwreinit. I assume most people worked around this by just creating a manual CF mapping which masked the issue.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bradwood Brad Wood
                Reporter:
                bradwood Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: