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

Error creating locator in JcrPrivilegeReport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.12.2
    • None
    • jackrabbit-jcr-server
    • None

    Description

      Using a jcr2dav client accessing the repository at:
      http://localhost:8080/RepositoryService/server

      The init method in JcrPrivilegeReport is responsible for creating the locator of the node to query. The locator is not being created correctly because it does not tak into account the service endpoint.

      It seems like one of 2 things needs to happen:
      1) remove the call to obtainAbsolutePathFromUri(href) and ensure the href contains the full url when passed to the locator.

      • This doesn't seem right, since this call was recently added. Also, the server path has already been stripped at this point (when coming in via webdav) so it would have to be updated on the webdav side as well.
        2) preprocess the href before creating the locator to remove the service path (RepositoryService/server).
      • This could be done by using obtainAbsolutePathFromUri(resourceLoc.getPrefix()) - which returns "/RepositoryService/server" and then removing that portion of the prefix from the href.

      Is one of these paths any better than the other? Or, perhaps am i missing something more fundamental that i shouldn't be seeing this?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rnavarette Ray Navarette
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: