Hi to all,
I'd developed a binary management program using Cocoon v2.1.5.1 and Slide v2.0 and developed it on demo block deliver by Cocoon Examples. So, using API Slide (no webdav methods) through Cocoon components.

My application create folder (collection), move file, remove file, upload file and search files in repository by DASL query.
I don't use Slide profiling but I manage all operations using only root user.

Now, it need upgrade applications (my program is in these applications) at Cocoon v2.1.7 that use new components lib and new Slide v2.1, and with new versions my application does't work for access denied errors occur on all operations.

The problem was solved using these method described here...
http://mail-archives.apache.org/mod_mbox/jakarta-slide-user/200504.mbox/[EMAIL 
PROTECTED]

m_slideToken.setForceStoreEnlistment(true);


... and only for create folders and move objects/files, BUT doesn't work on upload file because while first operations are based on SlideSource.class (org.apache.cocoon.components.source.impl), upload operation is based on SourceUtil (org.apache.excalibur.source) where token object doesn't exist!

Besides, for search operation using DASL query and "createSearchQuery" method of Helper Cocoon Componet, in these case "
m_slideToken.setForceStoreEnlistment(true);" doesn't solve :(

In these example:

SlideToken token = new SlideTokenImpl(new CredentialsToken("root"));
CredentialsToken credToken = token.getCredentialsToken();
java.security.Principal actor = credToken.getPrincipal();
System.out.println("token :: " + actor.getName());

actor.getName() give null and raise exception to "
createSearchQuery" method too, I think...

My application run on JBOSS v3.2.6 with slide.xconf (=domain.xml) set to default like before with Cocoon v2.1.5.1 and Slide v2.0 work all things...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to