Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8282

Bootstrapped role cannot be assigned right after in startup tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.3.0, Tech Prod Ready
    • 6.3.0
    • None
    • None

      Steps to reproduce

      1.  add startuptasks that boostrap role and try to assign it to group
      2.  

      .. Logs, screenshots, gifs...

      Expected results

      role is bootstraped and assigned

      .. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      role is bootstraped but not visible for assigment task. Assigment task warns that role doesn't exist and do nothing.

      Workaround

      run startup phase twice

      Development notes

      Probably caused by different phase,. In install/update phase it works.
      See info.magnolia.cms.security.RepositoryBackedSecurityManager#findPrincipalNode(java.lang.String, javax.jcr.Session, java.lang.String, javax.jcr.Node)
      We need stable mechanism to update saas instance. Startuptasks are just temporary solution that can be replaced with better one.

        Acceptance criteria

              efochr Evzen Fochr
              efochr Evzen Fochr
              AdminX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD