Re: Why need read privilege on upstream folders to achieve a writ e permission
Hi James, it used to be there, at least two years ago or so. You asked for a pointer, here it is: $Header: /home/cvspublic/jakarta-slide/src/webdav/server/org/apache/slide/webdav/WebdavServlet.java,v 1.63 2004/08/05 14:43:34 dflorey Exp $ public void init(): if (directoryBrowsing) { directoryIndexGenerator = new DirectoryIndexGenerator (token, (WebdavServletConfig)getServletConfig()); } $Header: /home/cvspublic/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/DirectoryIndexGenerator.java,v 1.8 2004/08/05 14:43:31 dflorey Exp $ public void generate(HttpServletRequest req, HttpServletResponse res) while (resources.hasMoreElements()) { String currentResource = (String) resources.nextElement(); NodeRevisionDescriptor currentDescriptor = null; permissionsList = null; locksList = null; try { NodeRevisionDescriptors revisionDescriptors = content.retrieve(slideToken, currentResource); // Retrieve latest revision descriptor currentDescriptor = content.retrieve(slideToken, revisionDescriptors); } catch (SlideException e) { I think here should be a continue for Security exception // Silent exception : Objects without any revision are // considered collections, and do not have any attributes // Any security based exception will be trapped here // Any locking based exception will be trapped here } Regarding the all this traversal stuff: When I worked with this I would have needed the possibility to say in a parent: This permission is inheritable. Then in some deeper child stop inheritence from parents from here on. The traverse permission from Warwick Burrows sounds pretty good though. However, I think the traverse permission is not how the read permission works on collections. Regards, Andreas On 16 Aug 2004 at 14:27, James Mason wrote: Awesome. I'll look into a way to fix this. We want to keep the behavior it has now (generates a pretty html display) but need to change how it gets its list of child resource. -James Andrey Shulinsky wrote: Aha, you're absolutely right! I've completely forgotten about this GET/PROPFIND difference. About the code - WebdavServlet relies on its parent - HttpServlet - handle GET request if it applies to a collection: if ((methodName.equalsIgnoreCase(GET) || methodName.equalsIgnoreCase(POST)) isCollection(req)) { // let the standard doGet() / doPost() methods handle // GET/POST requests on collections (to display a directory // index pag or something similar) super.service(req, resp); } So this collection case should have some special handling. Probably just the substitution of the GET request by the PROPFIND will do the trick but I can't tell for sure - I'm not an expert in their syntax. Yours sincerely, Andrey. -Original Message- From: Slide Users Mailing List [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 4:25 PM To: [EMAIL PROTECTED] Subject: Re: Why need read privilege on upstream folders to achieve a writ e permission Importance: Low I would expect any WebDAV client to behave this way, actually. A WebDAV client uses PROPFIND to get a list of the children of a collection. A normal browser on the other hand issues a GET. The problem here is the GET request is listing all children rather than just the children the user has access to. I consider this a security issue, albeit a minor one. I'm having trouble tracking down how GETs are handled specially for collections, so I'm hoping someone who's familiar with the code will step in with a solution or at least a pointer in the right direction. -James Andrey Shulinsky wrote: Actually, it's not a big deal, although ideally all WebDAV clients should work in the same way. I wish I had more time to help in testing... For now I can say that MacOS WebDAV support is consistent with WebFolders in handling GET requests. Yours sincerely, Andrey. You're right. It looks like this is a bug in the way GET requests for collections are handled. I'll look into this. -James Andrey Shulinsky wrote: Hi, Warwick, James, everybody! My 2 cents about the matter. Just to clarify, your traverse permission *is* how the read permission works on collections. If you get a list of the children of a collection you will only see the children to which you have read access as well. It depends on the client, actually. WebFolders are OK, but IE, for example, shows all children - with 2.0, at least.
Slide and Excel
Hi, I'm using slide with macos x build-in webdav client, and I have a problem with ms excel : when several users having readwrite permissions open the same excel file at the same time, the first user gets the file in read/write mode (ok), but the second one can't open the file. Excel shows this error : The file may be read-only or you may be trying to access a read only location. Or, the server the document is stored on may not be responding It seems that excel wants to write something in the xls file each time a user opens a xls, because if all the users have only read access to the file, they all can open the file (read only). Did anybody already have this problem and found a workaround ? (excel settings, or something else ?) I don't want users to make a local copy of the file each time they want to open it. Thanks -- Nicolas Richeton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Deploying slide on WebLogic Server 8.1
I have successfully deployed slide.war server libraries on WebLogic Server 8.1 using BASIC authentication. Steps are as under:- 1) I created a domain e.g. test 2) Created a new Security Realm... (e.g. WabanDAV) 3) Then using Providers Tab create the follwing: a) DefaultAdjudicator b) DefaultIdentity DefaultAsserter c) DefaultAuthorizer d) DefaultCredentialMapper e) DefaultRoleMapper 4) After that click to your domain name in your left pane (Here mine is test) - Click from the right pane to the hyperlink View Domain-wide Security Settings - Select the Default Realm from the list box (here mine is WabanDAV) and click Apply button 5) Click on the User Management Tab for WabanDAV Security Realm a) Click the Manage Groups within Security Realm - Configure a new group by giving name as mygroup b) Click Manage Users within Security Realm hyperlink to create new users - Create the following new users by clicking hyperlink Configure a new User - Create following users by filling up Name and Password fields:- - User NamePassword(Min 8 characters) i) root rootpass ii) guest guestpass c) Select user root and click on Groups Tab - Select the mygroup from the Possible Groups list box to Current Groups This will allow the group to which this user belongs. Similarly, Select user guest and click on Groups Tab and select the group for the user guest 6) Enable the auth-constraint element in web.xml. Check the web.xml:- web-app - - - auth-constraint role-nameroot/role-name role-nameguest/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameWabanDAV/realm-name /login-config security-role role-nameroot/role-name /security-role security-role role-nameguest/role-name /security-role - - - - web-app 6) Create the weblogic.xml !DOCTYPE weblogic-web-app PUBLIC -//BEA Systems, Inc.//DTD Web Application 8.1//EN http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd; weblogic-web-app security-role-assignment role-nameroot/role-name principal-namemygroup/principal-name /security-role-assignment security-role-assignment role-nameguest/role-name principal-namemygroup/principal-name /security-role-assignment /weblogic-web-app 7) Create the slide.war and test using http://localhost:7001/slide/ - This will provide the Login Screen - Fill up the username as root and password as rootpass and check the application. I hope this will be helpful to those who wants to deploy slide on WebLogic. Currently, I am just working on how to set up Oracle Store. If some one has idea please let me know. Also, I would be grateful if some one can give guidelines on how to run the client libraries using WebLogic. Cheers, Dharmesh
clientlib: WebdavResource.exists does not actively test for the resource's existence (javadoc-patch)
Hello, the current Javadoc for WebdavResource.exists says: public boolean exists() Test if it exists. This is a bit misleading, because it does not test, but return the last known information about the existence of this resource. So, if you create a WebdavResource with an action of NOACTION, this method will always return false. I have attached a patch, which clarifies the Javadoc on this issue. Best regards, Michael Index: clientlib/src/java/org/apache/webdav/lib/WebdavResource.java === RCS file: /home/cvspublic/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java,v retrieving revision 1.29 diff -u -r1.29 WebdavResource.java --- clientlib/src/java/org/apache/webdav/lib/WebdavResource.java9 Aug 2004 15:11:01 - 1.29 +++ clientlib/src/java/org/apache/webdav/lib/WebdavResource.java17 Aug 2004 11:54:07 - @@ -1088,6 +1088,11 @@ * WebdavResource.ALL * * @param action The action type. + * @see #NOACTION + * @see #NAME + * @see #BASIC + * @see #DEFAULT + * @see #ALL */ public static void setDefaultAction(int action) { defaultAction = action; @@ -1259,13 +1264,14 @@ * Set the HttpURL for this WebdavResource. * * @param httpURL the specified HttpURL. - * @param action The action to decide properties to find. + * @param action The action to decide, which properties to find. * @param depth The depth to find properties. * @exception HttpException * @exception IOException * @see #setHttpURL(java.lang.String) * @see #setUserInfo(java.lang.String, java.lang.String) * @see #setPath(java.lang.String) + * @see #setDefaultAction(int) */ public void setHttpURL(HttpURL httpURL, int action, int depth) throws HttpException, IOException { @@ -1303,13 +1309,14 @@ * * @param httpURL The specified HttpURL. * @param additionalPath The added relative path. - * @param action The action to decide properties to find. + * @param action The action to decide, which properties to find. * @param depth The depth. * @exception HttpException * @exception IOException * @see #setHttpURL(java.lang.String) * @see #setUserInfo(java.lang.String, java.lang.String) * @see #setPath(java.lang.String) + * @see #setDefaultAction(int) */ public void setHttpURL (HttpURL httpURL, String additionalPath, int action, int depth) @@ -1327,12 +1334,13 @@ * * @param httpURL The specified HttpURL. * @param additionalPath The added relative path. - * @param action The action to decide properties to find. + * @param action The action to decide, which properties to find. * @exception HttpException * @exception IOException * @see #setHttpURL(java.lang.String) * @see #setUserInfo(java.lang.String, java.lang.String) * @see #setPath(java.lang.String) + * @see #setDefaultAction(int) */ public void setHttpURL (HttpURL httpURL, String additionalPath, int action) @@ -1855,6 +1863,7 @@ * * @param action The action to find properties for this resource. * @param depth the depth to which properties shall be found + * @see #setDefaultAction(int) */ public void setProperties(int action, int depth) throws HttpException, IOException { @@ -1903,11 +1912,16 @@ } /** - * Test if it exists. + * Returns the last known information about the existence of this resource. * This is a wrapper method for getExistence. * - * @return true if it exists. + * A previous call to the method setProperties might be necessary to update + * that information. + * + * @return true if the resource is known to existbr + * false if the resource is known not to exist or its status is unknown. * @see #getExistence() + * @see #setProperties(int, int) */ public boolean exists() { return getExistence(); @@ -1925,9 +1939,14 @@ /** - * Get its existence. + * Returns the last known information about the existence of this resource. * - * @return true if it exists. + * A previous call to the method setProperties might be necessary to update that + * information. + * + * @return true if the resource is known to existbr + * false if the resource is known not to exist or its status is unknown. + * @see #setProperties(int, int) */ public boolean getExistence() { return exists; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Archive File Management using Slide
James Thanks for the reply. In my initial design I plan to number 3: 3) Store everything in a single file. When someone adds a comment you just overwrite the file. You could take advantage of Slide's versioning features so that you can rollback if someone posts an inapproriate comment. But i concern about the concurrency issues, e.g: User is viewing entry01_01.html but at the same moment a user is requesting this page for viewing. And I think I am still lost in slide framework, I think I shall dig in a bit deeper on slide first. Btw do you mind if I post an email to your inbox like this ? Regards, Zainul James Mason wrote: You might want to come up with a different strategy for storing comments. If you're deleting files all the time it's going to be hard to make a permalink or even bookmark for a blog entry. Here are a couple ideas: 1) For each entry make a collection that contains an entry.html file for the entry and a comment_XX.html (where XX is a number) file for each comment. When a user views the collection you'll need to dynamically pull all of the html files together to display. 2) Similar to 1 but with a single file for all the comments. When someone adds a comment you just update that file. This way you wouldn't have to dynamically build the page, but a user would have to go to a separate page to view/add comments. 3) Store everything in a single file. When someone adds a comment you just overwrite the file. You could take advantage of Slide's versioning features so that you can rollback if someone posts an inapproriate comment. -James Irfandhy Franciscus wrote: Hi, I am currently trying to find out how to use slide to manage my online files. Basically I am generating files for my blog entries. Example : Day 1: Today I make a new entry, lets call it Entry for Day 1 and this new entry is saved in a html file call entry01.html. The html file looks like something like this : Hello My first Entry Comment: none Day 2: Somebody make a post a comment on Entry for Day 1, so now entry01.html would be something like this: Hello My first Entry Comment: 1. First Comment So I generate a new file called entry01_01.html that will contains the above entry with the new comment. So now I will direct my blog readers to entry01_01.html to read the blog entry. Now my problem is that I have entry01.html in my file sytem that I would like to delete after entry01_01.html is generated. But I am a bit concern about concurreny issue E.g: What if one of my reader is actually about to open entry01.html and it is being deleted cause entry01_01.html is generated, so I do not want to immediately delete entry01.html after entry01_01.html is generated. I am hoping that I can somehow handle this by using slide. I have been reading the wikis, tutorial, but I am kinda lost right now. Perhaps any of you guys can point me to some good resources, or any advice will be much appreaciated. Regards, Irfandhy Franciscus So I want to use Slide to handle this concurrency issue. - 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]
Searching problem.
For days, I have been trying to understand how to do a search based on an integer value. I have some questions: Slide always perform string comparisons? Is it Dav:typed-literal element supported ? http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.11 This query must retrieves the displayname for all resources located under the server's slide/archivos/Destinos/formularios URI namespace whose length exceeds 9 bytes. The result was empty, however, there were 2 resources with more than 1,000,000 bytes. I´ve been doing more test and I realize that Slide always perform string comparisons for getcontentlength property. D:searchRequest xmlns:D=DAV: D:basicSearch D:select D:prop D:displayname / /D:prop /D:select D:from D:scope D:href/slide/archivos/Destinos/formularios/D:href D:depthinfinity/D:depth /D:scope /D:from D:where D:gt D:prop D:getcontentlength / /D:prop D:literal9/D:literal /D:gt /D:where /D:basicSearch /D:searchRequest I´m using Slide 2.1b1 from CVS, TxFileContentStore and PostgresSQL. Please help me !! Regards, -- Juan Andrés Bentancour
Re: Searching in Slide
Sounds simple and probably should work (would propertys follow though, or just the content?), but with 50k+ files weighing in over 60gb it is probably very time-consuming. Besides that, my experiences with large amounts of files and windows explorer isn't the best (it usually hangs after a little while). So there is no such tool available at all then? Sincerely, Peder - Original Message - From: Warwick Burrows [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED] Sent: Monday, August 16, 2004 7:17 PM Subject: RE: Searching in Slide For the first question, I have a suggestion that may be too simple and I haven't thought it all out... But couldn't you create and mount the second Slide store that you need then copy from the original store to the new store using a dav client like windows explorer? Warwick -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 11:54 AM To: 'Slide Users Mailing List' Subject: Re: Searching in Slide Hi Ryan, Thank you for the info on searching, will look into DASL and see if it works for our application! Perhaps you or anyone could answer a couple of more questions on Slide that I have, or direct me to a place where I can read up on them? 1) Is there a tool or script that can migrate data between different stores? For example right now I use the TxXMLFileDescriptorsStore as store for everything except content, but would like to move it over to a MySQL/RDBMS-Store (sp?). Is there an easy way to to this? 2) When using the slide realm in tomcat and accessing the webdav layer via IE on PC I often get two authentication-dialogs - the first one to login to the computer (as if I were accessing a network share), and after that the Webdav/HTTP Auth dialog. The first one can just be dismissed by pressing cancel, but is there a way to stop it from poping up at all? I don't really see why it would even appear as Webdav is on top of the HTTP-layer and should only care about the HTTP Auth? Or am I way off? Sincerely, Peder - Original Message - From: Ryan Rhodes [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED]; 'Peder Nordvaller' [EMAIL PROTECTED] Sent: Monday, August 02, 2004 2:41 PM Subject: RE: Searching in Slide Hi Peder, Slide supports DASL queries through the webdav servlet. You can query for resources by property value, and perform full text search against the content. Text search against content is optimized by a Lucene index. The properties aren't currently indexed by Lucene, but I think full text search for properties still works using a default brute force search. I'm not sure about the performance. There isn't much documentation on search, but take a look at the documentation for DASL. Full Text search is done by having a contains condition in the where clause. I think there is also a new DASL implementation for one of the database stores. -Ryan Rhodes -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 7:58 AM To: Slide Users Mailing List Subject: Searching in Slide Hi, I've been working with slide for a bit and it's been working just fine most of the time. I'm now working with a lot of content and nodes in Slide and the way I've been searching for things is getting sluggish. I am working directly towards the helpers but I'm not using the SearchImpl class because I haven't had time to check it out. When I search I get the children of a node and get their properties, check them for keywords and continue on with the childrens children in the same fashion. This is taking way too much time with some 60k nodes and I have had to do some caching to make it work at all in a useful way. My questions are: Is there any things I can do to speed up getting information out of nodes (properties etc)? How fast is the built-in slide Search? Is there any documentation on how to make use of it? Sincerely, Peder Nordvaller - 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: Searching in Slide
Copying wouldn't be the same as migration - copy will create different meta-data (creation/last update dates, owners, etc.) - Original Message - From: Warwick Burrows [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED] Sent: Monday, August 16, 2004 1:17 PM Subject: RE: Searching in Slide For the first question, I have a suggestion that may be too simple and I haven't thought it all out... But couldn't you create and mount the second Slide store that you need then copy from the original store to the new store using a dav client like windows explorer? Warwick -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 11:54 AM To: 'Slide Users Mailing List' Subject: Re: Searching in Slide Hi Ryan, Thank you for the info on searching, will look into DASL and see if it works for our application! Perhaps you or anyone could answer a couple of more questions on Slide that I have, or direct me to a place where I can read up on them? 1) Is there a tool or script that can migrate data between different stores? For example right now I use the TxXMLFileDescriptorsStore as store for everything except content, but would like to move it over to a MySQL/RDBMS-Store (sp?). Is there an easy way to to this? 2) When using the slide realm in tomcat and accessing the webdav layer via IE on PC I often get two authentication-dialogs - the first one to login to the computer (as if I were accessing a network share), and after that the Webdav/HTTP Auth dialog. The first one can just be dismissed by pressing cancel, but is there a way to stop it from poping up at all? I don't really see why it would even appear as Webdav is on top of the HTTP-layer and should only care about the HTTP Auth? Or am I way off? Sincerely, Peder - Original Message - From: Ryan Rhodes [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED]; 'Peder Nordvaller' [EMAIL PROTECTED] Sent: Monday, August 02, 2004 2:41 PM Subject: RE: Searching in Slide Hi Peder, Slide supports DASL queries through the webdav servlet. You can query for resources by property value, and perform full text search against the content. Text search against content is optimized by a Lucene index. The properties aren't currently indexed by Lucene, but I think full text search for properties still works using a default brute force search. I'm not sure about the performance. There isn't much documentation on search, but take a look at the documentation for DASL. Full Text search is done by having a contains condition in the where clause. I think there is also a new DASL implementation for one of the database stores. -Ryan Rhodes -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 7:58 AM To: Slide Users Mailing List Subject: Searching in Slide Hi, I've been working with slide for a bit and it's been working just fine most of the time. I'm now working with a lot of content and nodes in Slide and the way I've been searching for things is getting sluggish. I am working directly towards the helpers but I'm not using the SearchImpl class because I haven't had time to check it out. When I search I get the children of a node and get their properties, check them for keywords and continue on with the childrens children in the same fashion. This is taking way too much time with some 60k nodes and I have had to do some caching to make it work at all in a useful way. My questions are: Is there any things I can do to speed up getting information out of nodes (properties etc)? How fast is the built-in slide Search? Is there any documentation on how to make use of it? Sincerely, Peder Nordvaller - 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: Searching in Slide
There's no tool that _I_ know of but then I'm still a newbie to this product too. And although you have a lot of files to copy you would still have to go through the process of uploading them into the DB anyway so it is probably no more time consuming than a tool would be. I've had good results with Slide and win explorer myself but haven't copied 60Gb :-) The one issue that Kranga brought up is that although it will copy the properties of each file too, some of the live properties like creation date, etc, will be changed. Dead properties shouldn't but you would need to check which properties are changed and compensate if you want the original values kept. Warwick -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 8:57 AM To: Slide Users Mailing List Subject: Re: Searching in Slide Sounds simple and probably should work (would propertys follow though, or just the content?), but with 50k+ files weighing in over 60gb it is probably very time-consuming. Besides that, my experiences with large amounts of files and windows explorer isn't the best (it usually hangs after a little while). So there is no such tool available at all then? Sincerely, Peder - Original Message - From: Warwick Burrows [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED] Sent: Monday, August 16, 2004 7:17 PM Subject: RE: Searching in Slide For the first question, I have a suggestion that may be too simple and I haven't thought it all out... But couldn't you create and mount the second Slide store that you need then copy from the original store to the new store using a dav client like windows explorer? Warwick -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 11:54 AM To: 'Slide Users Mailing List' Subject: Re: Searching in Slide Hi Ryan, Thank you for the info on searching, will look into DASL and see if it works for our application! Perhaps you or anyone could answer a couple of more questions on Slide that I have, or direct me to a place where I can read up on them? 1) Is there a tool or script that can migrate data between different stores? For example right now I use the TxXMLFileDescriptorsStore as store for everything except content, but would like to move it over to a MySQL/RDBMS-Store (sp?). Is there an easy way to to this? 2) When using the slide realm in tomcat and accessing the webdav layer via IE on PC I often get two authentication-dialogs - the first one to login to the computer (as if I were accessing a network share), and after that the Webdav/HTTP Auth dialog. The first one can just be dismissed by pressing cancel, but is there a way to stop it from poping up at all? I don't really see why it would even appear as Webdav is on top of the HTTP-layer and should only care about the HTTP Auth? Or am I way off? Sincerely, Peder - Original Message - From: Ryan Rhodes [EMAIL PROTECTED] To: 'Slide Users Mailing List' [EMAIL PROTECTED]; 'Peder Nordvaller' [EMAIL PROTECTED] Sent: Monday, August 02, 2004 2:41 PM Subject: RE: Searching in Slide Hi Peder, Slide supports DASL queries through the webdav servlet. You can query for resources by property value, and perform full text search against the content. Text search against content is optimized by a Lucene index. The properties aren't currently indexed by Lucene, but I think full text search for properties still works using a default brute force search. I'm not sure about the performance. There isn't much documentation on search, but take a look at the documentation for DASL. Full Text search is done by having a contains condition in the where clause. I think there is also a new DASL implementation for one of the database stores. -Ryan Rhodes -Original Message- From: Peder Nordvaller [mailto:[EMAIL PROTECTED] Sent: Monday, August 02, 2004 7:58 AM To: Slide Users Mailing List Subject: Searching in Slide Hi, I've been working with slide for a bit and it's been working just fine most of the time. I'm now working with a lot of content and nodes in Slide and the way I've been searching for things is getting sluggish. I am working directly towards the helpers but I'm not using the SearchImpl class because I haven't had time to check it out. When I search I get the children of a node and get their properties, check them for keywords and continue on with the childrens children in the same fashion. This is taking way too much time with some 60k nodes and I have had to do some caching to make it work at all in a useful way. My questions are: Is there any things I can do to speed up getting information out of nodes (properties etc)? How fast is the built-in slide Search? Is there any documentation on how to make use of it? Sincerely, Peder Nordvaller
Re: Deploying slide on WebLogic Server 8.1
Thanks for posting this! When I get a chance I'll add it to the wiki. -James Dharmesh Rana wrote: I have successfully deployed slide.war server libraries on WebLogic Server 8.1 using BASIC authentication. Steps are as under:- 1) I created a domain e.g. test 2) Created a new Security Realm... (e.g. WabanDAV) 3) Then using Providers Tab create the follwing: a) DefaultAdjudicator b) DefaultIdentity DefaultAsserter c) DefaultAuthorizer d) DefaultCredentialMapper e) DefaultRoleMapper 4) After that click to your domain name in your left pane (Here mine is test) - Click from the right pane to the hyperlink View Domain-wide Security Settings - Select the Default Realm from the list box (here mine is WabanDAV) and click Apply button 5) Click on the User Management Tab for WabanDAV Security Realm a) Click the Manage Groups within Security Realm - Configure a new group by giving name as mygroup b) Click Manage Users within Security Realm hyperlink to create new users - Create the following new users by clicking hyperlink Configure a new User - Create following users by filling up Name and Password fields:- - User NamePassword(Min 8 characters) i) root rootpass ii) guest guestpass c) Select user root and click on Groups Tab - Select the mygroup from the Possible Groups list box to Current Groups This will allow the group to which this user belongs. Similarly, Select user guest and click on Groups Tab and select the group for the user guest 6) Enable the auth-constraint element in web.xml. Check the web.xml:- web-app - - - auth-constraint role-nameroot/role-name role-nameguest/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameWabanDAV/realm-name /login-config security-role role-nameroot/role-name /security-role security-role role-nameguest/role-name /security-role - - - - web-app 6) Create the weblogic.xml !DOCTYPE weblogic-web-app PUBLIC -//BEA Systems, Inc.//DTD Web Application 8.1//EN http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd; weblogic-web-app security-role-assignment role-nameroot/role-name principal-namemygroup/principal-name /security-role-assignment security-role-assignment role-nameguest/role-name principal-namemygroup/principal-name /security-role-assignment /weblogic-web-app 7) Create the slide.war and test using http://localhost:7001/slide/ - This will provide the Login Screen - Fill up the username as root and password as rootpass and check the application. I hope this will be helpful to those who wants to deploy slide on WebLogic. Currently, I am just working on how to set up Oracle Store. If some one has idea please let me know. Also, I would be grateful if some one can give guidelines on how to run the client libraries using WebLogic. Cheers, Dharmesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I use Slide to send files to a WebDav server?
You can use the Slide WebDAV client to write to your WebDAV server. The webapp you see is the Slide WebDAV server itself. The client communicates with any DAV server. You can download the client package separately from the Slide server package. The latest version is the 2.1 beta which was released last week. Warwick -Original Message- From: Matt Reason [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 12:51 PM To: [EMAIL PROTECTED] Subject: Can I use Slide to send files to a WebDav server? Hello, Sorry for being the confused new guy - but I'm a little lost. I have a java process that yanks a large datafile from my company's database and then I need to deposit the file on another company's WebDav server. It looks to me, from the downloads page, that Slide is an entire web-app. All I (think) I need is a couple of jars out of that package so I can call WebDav methods from my application. Is that true? Anybody know what jars I need and if there are any examples lying around. Or am I looking in the wrong spot altogether? Thanks in advance, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Slide and Excel
You may be able to configure the DAV server to use shareable instead of excusive locks. In theory then they can all open the file writable if need be. Running options on the server will tell you which mode its running in currently. You can configure shared locks in Domain.xml I think. Warwick -Original Message- From: Nicolas Richeton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 3:10 AM To: Slide Users Mailing List Subject: Slide and Excel Hi, I'm using slide with macos x build-in webdav client, and I have a problem with ms excel : when several users having readwrite permissions open the same excel file at the same time, the first user gets the file in read/write mode (ok), but the second one can't open the file. Excel shows this error : The file may be read-only or you may be trying to access a read only location. Or, the server the document is stored on may not be responding It seems that excel wants to write something in the xls file each time a user opens a xls, because if all the users have only read access to the file, they all can open the file (read only). Did anybody already have this problem and found a workaround ? (excel settings, or something else ?) I don't want users to make a local copy of the file each time they want to open it. Thanks -- Nicolas Richeton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can I use Slide to send files to a WebDav server?
Thanks, Warwick. I missed that. From the FAQ, there are no examples. Is that still true? How can one become familiar with using the client then? -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 11:09 AM To: 'Slide Users Mailing List' Subject: RE: Can I use Slide to send files to a WebDav server? You can use the Slide WebDAV client to write to your WebDAV server. The webapp you see is the Slide WebDAV server itself. The client communicates with any DAV server. You can download the client package separately from the Slide server package. The latest version is the 2.1 beta which was released last week. Warwick -Original Message- From: Matt Reason [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 12:51 PM To: [EMAIL PROTECTED] Subject: Can I use Slide to send files to a WebDav server? Hello, Sorry for being the confused new guy - but I'm a little lost. I have a java process that yanks a large datafile from my company's database and then I need to deposit the file on another company's WebDav server. It looks to me, from the downloads page, that Slide is an entire web-app. All I (think) I need is a couple of jars out of that package so I can call WebDav methods from my application. Is that true? Anybody know what jars I need and if there are any examples lying around. Or am I looking in the wrong spot altogether? Thanks in advance, Matt - 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: Can I use Slide to send files to a WebDav server?
There are a few examples on the Wiki. Also, the source to the command line client is a fairly good reference. -James Matt Reason wrote: Thanks, Warwick. I missed that. From the FAQ, there are no examples. Is that still true? How can one become familiar with using the client then? -Original Message- From: Warwick Burrows [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 11:09 AM To: 'Slide Users Mailing List' Subject: RE: Can I use Slide to send files to a WebDav server? You can use the Slide WebDAV client to write to your WebDAV server. The webapp you see is the Slide WebDAV server itself. The client communicates with any DAV server. You can download the client package separately from the Slide server package. The latest version is the 2.1 beta which was released last week. Warwick -Original Message- From: Matt Reason [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 12:51 PM To: [EMAIL PROTECTED] Subject: Can I use Slide to send files to a WebDav server? Hello, Sorry for being the confused new guy - but I'm a little lost. I have a java process that yanks a large datafile from my company's database and then I need to deposit the file on another company's WebDav server. It looks to me, from the downloads page, that Slide is an entire web-app. All I (think) I need is a couple of jars out of that package so I can call WebDav methods from my application. Is that true? Anybody know what jars I need and if there are any examples lying around. Or am I looking in the wrong spot altogether? Thanks in advance, Matt - 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: clientlib: WebdavResource.exists does not actively test for the resource's existence (javadoc-patch)
Thanks for the patch. I've applied to the code in CVS. -James Michael Häusler wrote: Hello, the current Javadoc for WebdavResource.exists says: public boolean exists() Test if it exists. This is a bit misleading, because it does not test, but return the last known information about the existence of this resource. So, if you create a WebdavResource with an action of NOACTION, this method will always return false. I have attached a patch, which clarifies the Javadoc on this issue. Best regards, Michael Index: clientlib/src/java/org/apache/webdav/lib/WebdavResource.java === RCS file: /home/cvspublic/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/WebdavResource.java,v retrieving revision 1.29 diff -u -r1.29 WebdavResource.java --- clientlib/src/java/org/apache/webdav/lib/WebdavResource.java 9 Aug 2004 15:11:01 - 1.29 +++ clientlib/src/java/org/apache/webdav/lib/WebdavResource.java 17 Aug 2004 11:54:07 - @@ -1088,6 +1088,11 @@ * WebdavResource.ALL * * @param action The action type. + * @see #NOACTION + * @see #NAME + * @see #BASIC + * @see #DEFAULT + * @see #ALL */ public static void setDefaultAction(int action) { defaultAction = action; @@ -1259,13 +1264,14 @@ * Set the HttpURL for this WebdavResource. * * @param httpURL the specified HttpURL. - * @param action The action to decide properties to find. + * @param action The action to decide, which properties to find. * @param depth The depth to find properties. * @exception HttpException * @exception IOException * @see #setHttpURL(java.lang.String) * @see #setUserInfo(java.lang.String, java.lang.String) * @see #setPath(java.lang.String) + * @see #setDefaultAction(int) */ public void setHttpURL(HttpURL httpURL, int action, int depth) throws HttpException, IOException { @@ -1303,13 +1309,14 @@ * * @param httpURL The specified HttpURL. * @param additionalPath The added relative path. - * @param action The action to decide properties to find. + * @param action The action to decide, which properties to find. * @param depth The depth. * @exception HttpException * @exception IOException * @see #setHttpURL(java.lang.String) * @see #setUserInfo(java.lang.String, java.lang.String) * @see #setPath(java.lang.String) + * @see #setDefaultAction(int) */ public void setHttpURL (HttpURL httpURL, String additionalPath, int action, int depth) @@ -1327,12 +1334,13 @@ * * @param httpURL The specified HttpURL. * @param additionalPath The added relative path. - * @param action The action to decide properties to find. + * @param action The action to decide, which properties to find. * @exception HttpException * @exception IOException * @see #setHttpURL(java.lang.String) * @see #setUserInfo(java.lang.String, java.lang.String) * @see #setPath(java.lang.String) + * @see #setDefaultAction(int) */ public void setHttpURL (HttpURL httpURL, String additionalPath, int action) @@ -1855,6 +1863,7 @@ * * @param action The action to find properties for this resource. * @param depth the depth to which properties shall be found + * @see #setDefaultAction(int) */ public void setProperties(int action, int depth) throws HttpException, IOException { @@ -1903,11 +1912,16 @@ } /** - * Test if it exists. + * Returns the last known information about the existence of this resource. * This is a wrapper method for getExistence. * - * @return true if it exists. + * A previous call to the method setProperties might be necessary to update + * that information. + * + * @return true if the resource is known to existbr + * false if the resource is known not to exist or its status is unknown. * @see #getExistence() + * @see #setProperties(int, int) */ public boolean exists() { return getExistence(); @@ -1925,9 +1939,14 @@ /** - * Get its existence. + * Returns the last known information about the existence of this resource. * - * @return true if it exists. + * A previous call to the method setProperties might be necessary to update that + * information. + * + * @return true if the resource is known to existbr + * false if the resource is known not to exist or its status is unknown. + * @see #setProperties(int, int) */ public boolean getExistence() { return exists; - To unsubscribe,