Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4325

Autocreation of properties fails if user id is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.2, 1.6.0
    • core, jcr
    • None

    Description

      The currently implementation of TreeUtil.autoCreateItems will fail with RepositoryException if any of the autocreated properties could not be created. This is currently the case if the editing session doesn't have a userID set, which is a valid scenario.

      IMO the following autocreated properties should always be created and using an empty value if there is a null userID passed to the call:

      • jcr:createdBy
      • jcr:lastModifiedBy

      Attachments

        Activity

          People

            Unassigned Unassigned
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: