Re: AccessDeniedException while storing file in Slide 2.1

Maksimenko Alexander <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
Found solution for my problem -
you need call
                slideToken.setForceStoreEnlistment(true);
see 
http://thread.gmane.org/gmane.comp.jakarta.slide.user/8871/focus=8871 
for details


> Hi!
>
> I've got strange error while using 2.1. Can somebody tell me where I'm 
> wrong
>
> I'm using Domain.xml from slide.war
>
> I've got
>
> org.apache.slide.security.AccessDeniedException: Access denied on 
> /users/activepages by user /users/root for action /actions/write
>    at 
> org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:427) 
>
>    at 
> org.apache.slide.structure.StructureImpl.store(StructureImpl.java:488)
>    at 
> org.apache.slide.structure.StructureImpl.store(StructureImpl.java:458)
>    at 
> org.apache.slide.structure.StructureImpl.create(StructureImpl.java:380)
>    at Test.test(Test.java:31)
>
> in the snippet
>
>        URL resource = getClass().getResource("domain.xml");
>        Domain.init(resource);
>        SecurityToken token = new SecurityToken("");
>        NamespaceAccessToken accessToken = 
> Domain.accessNamespace(token,"slide");
>
>        CredentialsToken credToken = new CredentialsToken("/root");
>        SlideTokenImpl slideToken = new SlideTokenImpl(credToken);
>              SubjectNode collection = new SubjectNode();
>
>        accessToken.begin();
>        
> accessToken.getStructureHelper().create(slideToken,collection,"/users/mydirectory"); 
>
>        accessToken.commit();
>
>
> Bu the most wired thing is that it crushes at 
> SecurityImpl.checkCredentials(SecurityImpl.java:403)
>
> ObjectNode realObject = objectUri.getStore().retrieveObject(objectUri);
>
> So it cannot even get object from the store
>
> Thanks!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.