Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3543

AuthenticatedWebSessionForCauseway lookup MetaModelContext rather than injected.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0-RC2
    • 2.0.0-RC3
    • Viewer Wicket
    • None

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

              danhaywood Daniel Keir Haywood
              danhaywood Daniel Keir Haywood
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: