Creating users with proper permisssion.

2004-11-16 Thread BalaSuthas Sundararajah
Hi, I'm pretty new to Slide. I want to know if there is guideline/tutorial explaining how to handle creating users with proper permisssions (e.g. some users will be administrators and others just ordinary users) or creating user in general using slide-client-java api. Thank you. - Suthas

Adding a user by mkcol

2004-11-16 Thread Morten
Hi. Using the client API to try and create a user (inspired by the creating users howto): public void createUser(String name) throws IOException { WebdavResource wdr = new WebdavResource(http, USER_BASE); wdr.mkcolMethod(something); WebdavResources res =

RE: Adding a user by mkcol

2004-11-16 Thread Nick Longinow
I would guess you're mkcolmethod is failing. Check the return value for 'true', and then look at wdr.getStatusCode() to see what failed. Nick -Original Message- From: Morten [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 4:40 AM To: [EMAIL PROTECTED] Subject: Adding a user

Database integration

2004-11-16 Thread Hidalgo Busto, Jose Antonio
Hi from spain. Sorry for my english. I am new in Slide. I am working in a project of construction of a new java version of the erp of the company. I am evaluating slide as open software tool to store and manage erp documents. At the present time, a suite client-server exists and we will leave

Re: Database integration

2004-11-16 Thread Oliver Zeigermann
I suppose you see the impact of caching. Have a look at http://wiki.apache.org/jakarta-slide/CacheConfiguration Oliver On Tue, 16 Nov 2004 14:57:47 +0100, Hidalgo Busto, Jose Antonio [EMAIL PROTECTED] wrote: Hi from spain. Sorry for my english. I am new in Slide. I am working in a project

RE: Database integration

2004-11-16 Thread Hidalgo Busto, Jose Antonio
Great.Works fine setting off cache-mode parameter. I can see erp documents on the fly :-) Next time I'll look wiki more carefully :-( Thanks. -Mensaje original- De: Oliver Zeigermann [mailto:[EMAIL PROTECTED] Enviado el: martes, 16 de noviembre de 2004 15:03 Para: Slide Users Mailing

PROBLEM IN uploading the file

2004-11-16 Thread mahesh kumar
Hello Every body .. I am in need of a simple program which uploads the file into oracle store using slide webdev client (slide content management system CMS). import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import

Re: PROBLEM IN uploading the file

2004-11-16 Thread mahesh kumar
Hello , I am gettting the following error at server side .. 16 Nov 2004 10:49:04 - org.apache.slide.store.impl.rdbms.StandardRDBMSAdapter - ERROR - java.io.EOFException: Unexpected end of ZLIB input stream java.io.EOFException: Unexpected end of ZLIB input stream at

RE: PROBLEM IN uploading the file

2004-11-16 Thread Nick Longinow
Hard to tell, but there may be a problem in the location you are trying to put the file, and slide is not reporting it properly. Just for validation, try doing an import using the example in the wiki at http://wiki.apache.org/jakarta-slide/CreateNewDirectoryAndFile See if that works. If it does,

Re: PROBLEM IN uploading the file

2004-11-16 Thread mahesh kumar
Hello All , I am now getting the following error .. http-8080-Processor23, 16-Nov-2004 11:11:27, root, PROPFIND, 207 Multi-Status, 30 ms, /files http-8080-Processor23, 16-Nov-2004 11:11:27, root, PUT, 403 Forbidden, 10 ms, /files http-8080-Processor24, 16-Nov-2004 11:11:45, root,

webdav client Ace - is there a 'setInheritable(boolean)' method ?

2004-11-16 Thread Nick Longinow
On the object org.apache.webdav.lib.Ace I don't see a method for setting the inheritable property. (I am setting specific ace entries along the slide tree, and don't want them to be inherited by later additions.) This can be done in the domain.xml by using 'inheritable=false'. Any ideas ?

RE: PROBLEM IN uploading the file

2004-11-16 Thread mahesh kumar
Hello Nick, Here the program that was modified as per the url you specified .. import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.HttpURL; import

RE: Database integration

2004-11-16 Thread Warwick Burrows
But wasn't the original problem that the new content could not be seen because it wasn't originally inserted through the cache but directly into the tables? If so only turning the cache off altogether will help. Warwick -Original Message- From: Oliver Zeigermann [mailto:[EMAIL

RE: PROBLEM IN uploading the file

2004-11-16 Thread Nick Longinow
Ok, when you are getting an 'internal server error' from webdav api, you need to look at the Tomcat request log to see what the specific error was. This will either be an Oracle related error, or it will be a slide class error. This will be in the form of a stack trace, and will show up in the

Re: ContentInterceptor doesn't seem to work.

2004-11-16 Thread Doug Reeder, a.k.a. Skapti
James Mason wrote: Doug, I'm not sure what the problem is. Here's a link to one I know worked with Slide 2.0: http://www.mail-archive.com/slide-user@jakarta.apache.org/msg06513.html The only differences I see are mine didn't include parameters and I implemented the setNamespace() method. Maybe

RE: PROBLEM IN uploading the file

2004-11-16 Thread mahesh kumar
Hi Nick , Please find the server side error .. INFO: Server startup in 21441 ms http-8080-Processor25, 16-Nov-2004 12:06:08, root, GET, 200 OK, 6199 ms, /files http-8080-Processor24, 16-Nov-2004 12:08:09, root, PROPFIND, 207 Multi-Status, 250 ms, /files http-8080-Processor24, 16-Nov-2004

RE: Server API

2004-11-16 Thread Bin Liu
Thanks Andy for your reply! I have looked at src\webdav\server\org\apache\slide\webdav\method java files, these methods extends AbstractWebdavMethod which in turn takes httpservletrequest and httpservletresponse. In your portal integration, did you have to pass httpservletrequest and

Product catalog/webdav integration advice sought.

2004-11-16 Thread Phillip Rhodes
I am writing an open source cart, a real one, one that someone can actually use;) Currently, my product descriptions are stored in a RDBMS, but I would rather store the images and product descriptions on a webdav server. My java-based tapestry application will communicate with the webdav server

RE: PROBLEM IN uploading the file

2004-11-16 Thread Nick Longinow
This is completely new to me. Not much info either in the javadocs at http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html I'd retry this using a Tx (file) store, to verify that your container and slide itself are setup properly, and then do the db store again. Unless

clustering

2004-11-16 Thread Bin Liu
Hi, I have tried clustering on Slide2.1b2 and works great. However, I found the url has to be in the format of: http://host:port/slide, if I there is a WAR context in between, it won't work. eg. http://host:port/Warcontext/slide. Is there way to get around this? thanks Bin

Re: Adding a user by mkcol

2004-11-16 Thread Morten
Nick Longinow wrote: I would guess you're mkcolmethod is failing. Check the return value for 'true', and then look at wdr.getStatusCode() to see what failed. Indeed Nick, thanks. I got a statuscode 400, bad request. What I do is, on a tomcat bundled 2.1b2 with default configuration: HttpURL

RE: Adding a user by mkcol

2004-11-16 Thread Nick Longinow
Try using a full uri for the mkcolmethod, ie wdr.mkcolMethod(/slide/users/blabla); The wiki for creating folders is a good pointer, http://wiki.apache.org/jakarta-slide/CreateNewDirectoryAndFile Nick -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Morten Sent:

Re: webdav client Ace - is there a 'setInheritable(boolean)' method ?

2004-11-16 Thread Michael Smith
Nick Longinow wrote: On the object org.apache.webdav.lib.Ace I don't see a method for setting the inheritable property. (I am setting specific ace entries along the slide tree, and don't want them to be inherited by later additions.) This can be done in the domain.xml by using

Re: proppatchMethod() of a version controlled resource

2004-11-16 Thread lixin chu
it seems that RFC states that the resource has to be checked out before the property can be changed. in which case, a new version will be created in the following check-in command. if this is the case, i do not think there is a solution using webdav for my case. one posibility is to have the

Status of supporting UTF-8 encoding

2004-11-16 Thread Gao Jun
Hi, Could anybody tell me what's the status of Slide for supporting UTF-8 encoding? I'm using Slide 2.1b but it still has problem in supporting languages like Chinese. I'd like to know whether this version is supposed to support all kinds of charsets. Thanks. regards, Jun

Re: ContentInterceptor doesn't seem to work.

2004-11-16 Thread James Mason
Well, by default I don't think it will log anything. Try adding some code to write to the log. If you can't get it working then maybe there's something wrong with your configuration (although I can't imagine what at this point). -James On Tue, 2004-11-16 at 12:07 -0500, Doug Reeder, a.k.a.

Re: AW: Added projector documentation link

2004-11-16 Thread James Mason
If you wrap the response object before passing it to the RequestDispatcher you could catch the output of the jsp and store it for later. I would be against using jsps as a template system, however. There are many other good solutions that don't allow business logic in the presentation layer.

Re: Added projector documentation link

2004-11-16 Thread James Mason
On Sun, 2004-11-14 at 02:34 +0100, Stephane Bailliez wrote: [snip...] why did you make your own template language ? When I see this: ?username h1 ?style style=%style%?Hello %username;required;text/plain%!/h1? I'm already screaming of pain ! It's not readable ! This is something I had

RE: Server API

2004-11-16 Thread James Mason
Andy, Would a JCR (JSR 170) API to Slide be beneficial to your application? An idea some of the Slide developers have been kicking around is using Jackrabbit to write a wrapper around the WebDAV API so any WebDAV-accessible server would be JCR compliant. Interest is fairly low right now since

Re: auto-version checkout

2004-11-16 Thread James Mason
Tim, I believe the behavior you're seeing is expected. There was a discussion about this a few weeks back, you may be able to find it in the archive. I don't know a lot about versions (maybe someone else can step in here), but as far as I know the auto-version parameter only effects newly-created