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

Bootstrapped role cannot be assigned right after in startup tasks

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD