Interceptors using wirebox have potential to break the database: gently prevent that

Description

Interceptors are registered before other aspects of the system have finished loading - if interceptors inject dependencies at instantiation, and those dependencies rely on the preside object service, things can go horribly wrong with the database; for example all foreign keys for page types get deprecated.

A simple reproduction is to create an interceptor that has:

Then reload the application.

Proposed solution: detect this scenario and throw some informative error before any harm can come of the situation; something like a "kernel panic".

Assignee

Unassigned

Reporter

Dominic Watson

Labels

None

Accepted

Yes

Fix versions

Priority

Medium
Configure