[ 
https://issues.apache.org/jira/browse/JCR-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke resolved JCR-3990.
---------------------------------
    Resolution: Duplicate

> Error creating locator in JcrPrivligeReport
> -------------------------------------------
>
>                 Key: JCR-3990
>                 URL: https://issues.apache.org/jira/browse/JCR-3990
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-server
>    Affects Versions: 2.12.2
>            Reporter: Ray Navarette
>            Priority: Major
>
> 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?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to