Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3246

Audit beans for invalid usages of lazy initialization and other patterns unsafe for concurrent environments

    Details

      Description

      This task involves examining all @ApplicationScoped, @SessionScoped, and @ViewScoped beans to check if they use a pattern such as lazy initialization that is invalid for use in concurrent code. For example, ListModelBean (and @ApplicationScoped bean) uses lazy initialization. This could potentially expose partially initialized objects or lists. Lazy initialization should either be removed from all @ApplicationScoped and @SessionScoped (and some @ViewScoped) beans or it should be done using the thread-safe volatile double-checked locking pattern.

      See this post for more details: https://stackoverflow.com/questions/35009907/concurrency-of-applicationscoped-jsf-managed-beans/

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann (Inactive)
              Reporter:
              kyle.stiemann Kyle Stiemann (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-impl-4.1.2
                alloy-3.0.2
                showcase-3.0.3