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

Read access is enforced on NEW items

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13
    • core
    • None

    Description

      as explained in OAK-923 we may currently run into the situation where a new Tree is being added because it does not exist but the resulting child does not exist due to restricted access. the same is true for new properties.

      IMHO this breaks backwards compatibility with jackrabbit core.

      i would therefore suggest to

      • extend MutableTree#exists by checking for the tree being new
        line 390:
                    
          - return nodeBuilder.exists();
          + return nodeBuilder.isNew() || nodeBuilder.exists();
          
      • similar behavior for #hasProperty #getProperty, #getProperties and #getPropertyCount (no patch yet).

      however, i would like to get a broader consensus on this kind of modifications as this
      might have side effects in other places.

      Attachments

        Issue Links

          Activity

            People

              jukkaz Jukka Zitting
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: