Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2425

Session.save() and Session.refresh(boolean) rely on accessibility of the root node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta6
    • jackrabbit-core
    • None

    Description

      follow-up issue to JCR-2418:

      an editing session that is only allowed to write in a subtree but isn't allowed to access the root node will not be
      able to save or revert changes made in the transient space within that subtree.

      the reason for this is, that both SessionImpl.save() and SessionImpl.refresh(boolean) access the root node
      in order to execute the call. since it's the regular call READ permissions are checked, although the user
      made no attempt to look at the root.

      A workaround would be to call Item.save() on the modified tree itself that obviously was visible for the
      user... unfortunately that method is deprecated as of JCR 2.0. Therefore, I have the impression that we
      should fix the methods mentioned above.

      Attachments

        Activity

          People

            stefan@jira Stefan Guggisberg
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: