jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Joschko <markus.josc...@gmail.com>
Subject Re: Not possible to get a secured repository with the JCRUtils.getRepository
Date Tue, 11 Oct 2011 13:55:52 GMT
Hi Jukka,
I just tried the trunk standalone client via davex.
While I can login to the repository and read everything, I can not
delete or import stuff.
Instead I get an UnsupportedRepositoryException (below). Everything is
fine if I allow anonymous the access to the repository.

[/] > del etc

an exception occurred

exception: javax.jcr.UnsupportedRepositoryOperationException
message: level.2.supported is not supported by this repository.

display stack trace? [y/n]y
javax.jcr.UnsupportedRepositoryOperationException: level.2.supported
is not supported by this repository.
        at org.apache.jackrabbit.jcr2spi.SessionImpl.checkSupportedOption(SessionImpl.java:986)
        at org.apache.jackrabbit.jcr2spi.ItemImpl.checkSupportedOption(ItemImpl.java:503)
        at org.apache.jackrabbit.jcr2spi.ItemImpl.remove(ItemImpl.java:302)
        at org.apache.jackrabbit.standalone.cli.core.RemoveItem.execute(RemoveItem.java:52)
        at org.apache.jackrabbit.standalone.cli.JcrClient.runCommand(JcrClient.java:255)
        at org.apache.jackrabbit.standalone.cli.JcrClient.runInteractive(JcrClient.java:210)
        at org.apache.jackrabbit.standalone.Main.run(Main.java:137)
        at org.apache.jackrabbit.standalone.Main.main(Main.java:60)



On Tue, Sep 20, 2011 at 11:51 AM, Jukka Zitting <jukka.zitting@gmail.com> wrote:
> Hi,
>
> On Tue, Sep 20, 2011 at 10:44 AM, Markus Joschko
> <markus.joschko@gmail.com> wrote:
>> There is nothing wrong with the webdav url. It works fine if I allow
>> anonymous read rights.
>
> The problem is that the webdav client tries to connect the repository
> to see if it's there already before you've provided any credentials.
> And since due to the authentication requirement it can't access
> anything, it concludes that no repository can be found. I guess in
> such cases (when encountering a mandatory authentication request) the
> webdav client should just silently assume that there is a repository
> behind the given URL.
>
> I filed JCR-3076 [1] to track this problem.
>
> [1] https://issues.apache.org/jira/browse/JCR-3076
>
> BR,
>
> Jukka Zitting
>

Mime
View raw message