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

[cp2fm] "create service user" repoinit instruction throws javax.jcr.nodetype.ConstraintViolationException

    XMLWordPrintableJSON

Details

    Description

      It happens that a create service user ... with path ... like the one below:

      "create service user replication-user with path /home/users/system/communities"
      

      Throws a javax.jcr.nodetype.ConstraintViolationException:

      java.lang.RuntimeException: Session.save failed: javax.jcr.nodetype.ConstraintViolationException: OakConstraint0001: /home/users/system/communities[[rep:AuthorizableFolder]]: No matching definition found for child node replication-user with effective type [sling:Folder]
      

      I am investigating if adding an extra sentence

      create path (rep:AuthorizableFolder) /home/users/system/communities}}
      

      before creating the user could fix the repoinit execution.

      Attachments

        Issue Links

          Activity

            People

              simone.tripodi Simone Tripodi
              simone.tripodi Simone Tripodi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m