Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7960

Repoinit: "delete user" also deletes service user

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Repoinit JCR 1.1.8
    • None
    • Repoinit
    • None

    Description

      My current application uses a regular user, but with some changes to the framework we need to migrate to regular service users. The service user is being added as part of the deployment.

      To automate this I decided to use the repoinit to remove the regular user and then deploy the service user. Which works fine, but only until the next time the repoinit is executed again. Because then the repoinit statement

      delete user foo

      purges the newly created serviceuser "foo". Which is totally unexpected, because there is a dedicated command "delete service user" which is supposed to remove users. So "delete user foo" must only delete a regular user "foo" but not a service user named "foo".

       

      Attachments

        1. SLING-7960.patch
          1 kB
          Joerg Hoh
        2. SLING-7960-2.patch
          4 kB
          Joerg Hoh
        3. SLING-7960-3.patch
          4 kB
          Joerg Hoh
        4. SLING-7960-4-oasrp.patch
          6 kB
          Joerg Hoh
        5. SLING-7960-4-oasjr.patch
          6 kB
          Joerg Hoh

        Activity

          People

            Unassigned Unassigned
            joerghoh Joerg Hoh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: