Uploaded image for project: 'My Page'
  1. My Page
  2. MYPAGE-36

Lookup the content type when initializing and throw an exception if a problem occurs

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.1
    • None
    • None

      Lookup the content type when initializing and throw an exception if a problem occurs, to avoid getting the problem later.

          [MYPAGE-36] Lookup the content type when initializing and throw an exception if a problem occurs

          Cédric Damioli made changes -
          Workflow Original: classic default workflow [ 16183 ] New: Ametys [ 25894 ]
          Nicolas Gavalda (Inactive) made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Nicolas Gavalda (Inactive) made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          It's impossible to lookup a content type while initializing a component, as it is not itself initialized yet.
          On the contrary, search all occurrences of PersonContentTypeRetriever.getPersonContentType() in service() or initialize() methods and replace by deferred ("lazy") calls in generate() or act().

          Nicolas Gavalda (Inactive) added a comment - It's impossible to lookup a content type while initializing a component, as it is not itself initialized yet. On the contrary, search all occurrences of PersonContentTypeRetriever.getPersonContentType() in service() or initialize() methods and replace by deferred ("lazy") calls in generate() or act().
          Nicolas Gavalda (Inactive) created issue -

            Unassigned Unassigned
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: