Re: Slide installation problem
Paul Dorman wrote: am I missing something or does the /webapps/slide not get created any more when extracting the jakarta-slide-2.1-tomcat-5.0.28.tar.gz file? I notice only the slide.war file is there in the /webapps directory, not the directory. If you use default Tomcat settings, the WAR should be deployed/unpacked automatically. If you have production settings (ie not polling for new WAR-files to deploy), you can use the Tomcat Manager or Deployer applications to deploy the WAR. See the Tomcat manual for more info on this. (Like JAR, a WAR is just a ZIP with some metadata info, so you can spy on the contents with jar or any unzip-capable program.) Regards, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DASL search results ordering
Thanks again. I like succint answers ;) So, I guess the only other way to do it is then to drop down to native store searching. So, I use mysql as my backen store, I can use mysql sql ? This would solve my issue, but not be standard dasl. Julian Reschke wrote: Paul Hussein wrote: Thanks for the reply. OK, can I achieve the sorting first on type, then on name another way ? Nope. Not with standard DASL. Some have displayname set, some dont. Can I sort on path? Nope. Best regards, Julian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Circular folders in Windows XP
Hello, This is an issue with M$ webfolder client. When you create a new folder, the default behaviour of the webfolder is to create a new directory with the displayname and uri to New Folder. When you give in your name, or rename the folder, webfolder only makes a propatch to the displayname witch, in the end, results in the display you encountered: new folders inside newfolders, inside newfolders... The problem maybe would not show up if when making copies or moves from one side to another in webfolder, the displayname wouldn't revert to New Folder again. The solution: use other client to manage folders. Hope this helps, Miguel Figueiredo -Original Message- From: Paul Dorman [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 7 de Abril de 2005 1:41 To: slide-user@jakarta.apache.org Subject: Circular folders in Windows XP Hi all, we have a simple WebDAV repository set up and our primary clients are Windows XP machines. I can get around the issue of domain passwords by using this format when setting up a new webfolder: http://webdav:/slide/ The colon seems to help nicely :o) The problem now is that when you create a new folder (collection) in Windows XP, you see the same folder inside itself over and over again. So: New folder-New folder-New folder... If I look at the properties in Windows it never stops telling me how many subfolders there are. But in DAVExplorer or Nautilus I only see the one collection. Has anyone seen this problem before? It's bizarre to say the least! On top of that, hitting 'refresh' seems to kill the behaviour in an inconsistent way (sometimes works, sometimes doesn't). One other note, is there any way to improve auto-versioning compatibility with Windows XP? Cheers, Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
auto-create-users
Hi, I have sucessfully created my jaas login module and it works great. Now, I would like the users to be created in Slide if they don't exist. How can i do that ? I have seen that I had to put in Domain.xml : auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-cre ate-users-role but it doesnot work. Nothing happens. And when I log to jaas, I get a 403 forbidden error. Can anybody help me ?
org.apache.slide.security.AccessDeniedException
Hi to all again, i know i am bothering you too much.please forgive me but there is noone around me to ask. when i try to put a file to Slide with the user root i got no exception. but when i try with ethem i got the excepiton below. also i will be appreciated how i can i take users from database. please help me org.apache.slide.security.AccessDeniedException: Access denied on /files by user /users/ethem for action /actions/bind at org.apache.slide.security.SecurityImpl.checkCredentials(SecurityImpl.java:40 9) at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:349) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: auto-create-users
try this: parameter name=auto-create-userstrue/parameter parameter name=auto-create-users-roleslideroles.basic.RootRoleImpl/parameter -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 2:40 PM To: Slide Users Mailing List Subject: auto-create-users Hi, I have sucessfully created my jaas login module and it works great. Now, I would like the users to be created in Slide if they don't exist. How can i do that ? I have seen that I had to put in Domain.xml : auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-cre ate-users-role but it doesnot work. Nothing happens. And when I log to jaas, I get a 403 forbidden error. Can anybody help me ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JAAS
Does anybody already success installing Slide on Resin (caucho.com) with custom authentication ? My LoginModule is never called, I don't know how to declare a kind of Realm ? Regards -- *Jean-Philippe Encausse* - RD Jalios SA [EMAIL PROTECTED] - http://www.encausse.com - http://www.jalias.com ICQ: 109796741 - AOL: NextOne - MSN: [EMAIL PROTECTED] Mob: +33 6 80 75 71 09 - Office: +33 1 39 23 92 83 - Home: +33 1 39 18 90 15 *Do it Once, Use it Twice ~ Do it Twice, Make It Once* -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 06/04/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: auto-create-users
It doesnot work. I should see a new file in store/metadata/users, no ? I've put the lines in Domain.xml at this position : namespace ... configuration ... HERE /configuration /namespace Is this correct ? -Message d'origine- De : Ethem YUKSEL [mailto:[EMAIL PROTECTED] Envoyé : jeudi 7 avril 2005 14:15 À : Slide Users Mailing List Objet : RE: auto-create-users try this: parameter name=auto-create-userstrue/parameter parameter name=auto-create-users-roleslideroles.basic.RootRoleImpl/parameter -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 2:40 PM To: Slide Users Mailing List Subject: auto-create-users Hi, I have sucessfully created my jaas login module and it works great. Now, I would like the users to be created in Slide if they don't exist. How can i do that ? I have seen that I had to put in Domain.xml : auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-cre ate-users-role but it doesnot work. Nothing happens. And when I log to jaas, I get a 403 forbidden error. Can anybody help me ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: auto-create-users
seems to be correct but don't understand why not to work, it worked on me. i am sending my domain.xml. check there... -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 3:43 PM To: Slide Users Mailing List Subject: RE: auto-create-users It doesnot work. I should see a new file in store/metadata/users, no ? I've put the lines in Domain.xml at this position : namespace ... configuration ... HERE /configuration /namespace Is this correct ? -Message d'origine- De : Ethem YUKSEL [mailto:[EMAIL PROTECTED] Envoyé : jeudi 7 avril 2005 14:15 À : Slide Users Mailing List Objet : RE: auto-create-users try this: parameter name=auto-create-userstrue/parameter parameter name=auto-create-users-roleslideroles.basic.RootRoleImpl/parameter -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 2:40 PM To: Slide Users Mailing List Subject: auto-create-users Hi, I have sucessfully created my jaas login module and it works great. Now, I would like the users to be created in Slide if they don't exist. How can i do that ? I have seen that I had to put in Domain.xml : auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-cre ate-users-role but it doesnot work. Nothing happens. And when I log to jaas, I get a 403 forbidden error. Can anybody help me ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: auto-create-users
There is no domain.xml. You can send it directly at [EMAIL PROTECTED] -Message d'origine- De : Ethem YUKSEL [mailto:[EMAIL PROTECTED] Envoyé : jeudi 7 avril 2005 14:49 À : Slide Users Mailing List Objet : RE: auto-create-users seems to be correct but don't understand why not to work, it worked on me. i am sending my domain.xml. check there... -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 3:43 PM To: Slide Users Mailing List Subject: RE: auto-create-users It doesnot work. I should see a new file in store/metadata/users, no ? I've put the lines in Domain.xml at this position : namespace ... configuration ... HERE /configuration /namespace Is this correct ? -Message d'origine- De : Ethem YUKSEL [mailto:[EMAIL PROTECTED] Envoyé : jeudi 7 avril 2005 14:15 À : Slide Users Mailing List Objet : RE: auto-create-users try this: parameter name=auto-create-userstrue/parameter parameter name=auto-create-users-roleslideroles.basic.RootRoleImpl/parameter -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 2:40 PM To: Slide Users Mailing List Subject: auto-create-users Hi, I have sucessfully created my jaas login module and it works great. Now, I would like the users to be created in Slide if they don't exist. How can i do that ? I have seen that I had to put in Domain.xml : auto-create-userstrue/auto-create-users auto-create-users-roleorg.apache.slide.structure.SubjectNode/auto-cre ate-users-role but it doesnot work. Nothing happens. And when I log to jaas, I get a 403 forbidden error. Can anybody help me ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
where are the acls for the /slide/ object stored
I am using the TxXMLFileDescriptorsStore and I was using the command line line to set an acl when I inadvertently granted read-acl on /slide/ to all. The how is that I was navigating around granting permissions and got distracted and was at /slide/ and didn't realize it. Now when I do acl on anything I see granted to all (not protected) (inherited from '/slide/') DAV:read-acl and denied to all (not protected) (inherited from '/slide/') DAV:read-acl revoke doesn't have any affect Where are the acls stored in xml for /slide/ so I can fix more directly? Michael Oliver CTO Alarius Systems LLC 3325 N. Nellis Blvd, #1 Las Vegas, NV 89115 Phone:(702)643-7425 Fax:(702)974-0341 *Note new email changed from [EMAIL PROTECTED] -Original Message- From: Clive Borrageiro [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 8:35 AM To: 'Slide Users Mailing List' Subject: RE: failed to programatically upload file Hi Zoltan, That is correct! I have found that Slide is not clearly documented; but under the roadmap link on the website; slide documentation, snippets, tutorials etc. is in progress. Hope that will shed some light on slide! The problem I have encountered is large file transfer! (files 2GB) I have applied the patch from Onion networks but I am still having issues. So if anyone has done large file ( 2GB) uploads downloads using Jetty Slide; please throw any suggestions my way! Thanks, Clive -Original Message- From: Zoltan [mailto:[EMAIL PROTECTED] Sent: 09 February 2005 06:23 PM To: 'Slide Users Mailing List' Subject: RE: failed to programatically upload file Hello Clive, I followed your suggestion and it worked! Thanks a lot. So the wdr.putMethod(fileName) will work only if passed the complete URL to the Slide server concatenated with the name of the file to upload? If yes, this is not very clearly documented... Regards, Zoltan Hi, I had the same problem; try doing the following: File fn = new File(fileName); String path = http://localhost:8080/slide/files/; + fn.getName(); wdr.putMethod(path, fn); Hope that helps! Clive Hello, I have downloaded and deployed slide.war to my Jboss 4.0.1 deploy folder (under Windows XP SP1). On the client side, I have jakarta-slide-webdavlib-2.1.jar in my build path. I've tried to upload a file using the following snippet of code: try { HttpURL hrl = new HttpURL(url); WebdavResource wdr = new WebdavResource(hrl); File fn = new File(fileName); wdr.putMethod(fn); wdr.close(); } catch(MalformedURLException mue) { String msg = (UploadFile) execute : wrong fileName passed: + fileName; log.debug (msg, mue); } catch(HttpException he) { String msg = (UploadFile) execute : HTTP exception occured ; log.debug (msg, he); } catch(IOException ioe) { String msg = (UploadFile) execute : IO exception occured ; log.debug (msg, ioe); } At run-time the url passed is : http://localhost:8080/slide/files and the fileName is /DJ/images/16.jpg (the correct location of the file on my local machine). The upload fails and I see the following on the Jboss console: 12:05:31,359 INFO [STDOUT] http-0.0.0.0-8080-Processor24, 08-Feb-2005 12:05:31, unauthenticated, PROPFIND, 207 Multi-Status, 31 ms, /files 12:05:31,578 INFO [STDOUT] http-0.0.0.0-8080-Processor24, 08-Feb-2005 12:05:31, unauthenticated, PUT, 403 Forbidden, 0 ms, /files I read some articles about authentication problems with Slide and, as a result, I have modified the domain.xml file like: permission action=all subject=/roles/root inheritable=true/ permission action=/actions/read-acl subject=all inheritable=true negative=true/ permission action=/actions/write-acl subject=all inheritable=true negative=true/ permission action=/actions/unlock subject=all inheritable=true negative=true/ permission action=/actions/read subject=all inheritable=true/ !-- /users -- objectnode classname=org.apache.slide.structure.SubjectNode uri=/users permission action=all subject=self inheritable=true/ !--permission action=all subject=unauthenticated inheritable=true negative=true/-- permission action=/actions subject=/users/guest/ !-- /users/root represents the administrator -- objectnode classname=org.apache.slide.structure.SubjectNode uri=/users/root revision property namespace=http://jakarta.apache.org/slide/; name=password/ /revision /objectnode !-- /users/john and /users/john2 represent authenticated users --
Problems creating Objects
Hello, I want to use slide without the webdav servlet. I wrote a little program to test the installation. But when creating new objects I only get Exceptions. I'm using this code (filedata is a byte-array passed as parameter): Domain.init(domain.xml); token = Domain.accessNamespace(new SecurityToken(this), Domain.getDefaultNamespace()); if (token != null) { CredentialsToken credentials; credentials = new CredentialsToken(); SlideToken slidetoken = new SlideTokenWrapper(new SlideTokenImpl(credentials)); slidetoken.setForceSecurity(false); Content content = token.getContentHelper(); token.begin(); // The following line throws the Exception token.getStructureHelper().create(slidetoken, new SubjectNode(), /files/testfile.pdf); NodeRevisionContent revisionContent = new NodeRevisionContent(); revisionContent.setContent(new ByteArrayInputStream(filedata)); NodeRevisionDescriptor revisionDesc = new NodeRevisionDescriptor(filedata.length); revisionDesc.setSource(); revisionDesc.setResourceType(); revisionDesc.setContentLanguage(de); revisionDesc.setContentType(application/pdf); revisionDesc.setLastModified(new Date()); revisionDesc.setCreationDate(new Date()); revisionDesc.setOwner(mrlogic); revisionDesc.setCreationUser(mrlogic); content.create(slidetoken, /files/testfile.pdf, revisionDesc, revisionContent); token.commit(); } domain.xml is the example file published on the homepage. I'm getting the following Exception: 19:08:50,345 INFO [STDOUT] org.apache.slide.common.ServiceAccessException: Service TxXMLFileDescriptorsStore at /var/semrell/store/metadata working on /var/semrell/work/metadata access error : Conflict with uri /files. Cause is: no cause given 19:08:50,346 INFO [STDOUT] at org.apache.slide.store.txfile.AbstractTxFileStoreService.throwInternalError(AbstractTxFileStoreService.java:411) 19:08:50,346 INFO [STDOUT] at org.apache.slide.store.txfile.XMLResourceDescriptor.load(XMLResourceDescriptor.java:199) 19:08:50,346 INFO [STDOUT] at org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.getFileDescriptor(TxXMLFileDescriptorsStore.java:578) 19:08:50,346 INFO [STDOUT] at org.apache.slide.store.txfile.TxXMLFileDescriptorsStore.storeObject(TxXMLFileDescriptorsStore.java:109) 19:08:50,347 INFO [STDOUT] at org.apache.slide.store.AbstractStore.storeObject(AbstractStore.java:639) 19:08:50,347 INFO [STDOUT] at org.apache.slide.store.ExtendedStore.storeObject(ExtendedStore.java:590) 19:08:50,347 INFO [STDOUT] at org.apache.slide.structure.StructureImpl.store(StructureImpl.java:493) 19:08:50,347 INFO [STDOUT] at org.apache.slide.structure.StructureImpl.create(StructureImpl.java:379) Thanks for any help, Volker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]