Daniel Keir Haywood created CAUSEWAY-3543:
---------------------------------------------
Summary: AuthenticatedWebSessionForCauseway lookup
MetaModelContext rather than injected.
Key: CAUSEWAY-3543
URL: https://issues.apache.org/jira/browse/CAUSEWAY-3543
Project: Causeway
Issue Type: Improvement
Components: Viewer Wicket
Affects Versions: 2.0.0-RC2
Reporter: Daniel Keir Haywood
Assignee: Daniel Keir Haywood
Fix For: 2.0.0-RC3
Currently we inject the "MetaModelContext" object (from which the regular
InteractionService is retrieved) into the AuthenticatedWebSessionForCauseway
override, via an init method.
However, this field is marked as transient, so under certain circumstances it
seems as though this field may become null, resulting in NPEs/500 errors
thereafter.
A more robust design would simply be to lookup the MetaModel from the
CausewayWicketApplication, which is available always through a static singleton
method CausewayWicketApplication.get().
--
This message was sent by Atlassian Jira
(v8.20.10#820010)