I'm not using the servlet container security; because of the kinds of permissions I'm using I had to write my own. The filter is expecting either a login 'command' along with a username and password (e.g. servletname?method=login&username=someuser&password=pass) or that a 'user' object (containing my custom security info) be in the session, which it uses to determine if the user has access to the folder. Aside from not knowing how to get access to the session and anything in it, the problem I'm having now is with the 'login' url; it seems that the & chars are not getting encoded, so when I execute my GetMethod instance on the WebdavResource, it fails. Are there built-in utils for encoding urls? I'm currently looking at GenericURI in the webdavlib.jar. I'm currently using Slide 1.0.16.


Mark



James Higginbotham wrote:

If you have written the filter, what does it expect? If you have BASIC
authentication turned on, then the http client that the webdev client
uses for transport allows you to add the username/password for such a
case (see the command line slide client as an example). If you've
written a custom login module, you'll have to do whatever you have it
expect for the username/password.


James



-----Original Message-----
From: Mark Wood [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 6:17 AM
To: [EMAIL PROTECTED]
Subject: Http Session Question



I have a question about using the Slide Webdav Client libs and accessing http session info. Essentially what I would like to be able to do is connect to my server (Tomcat 4.0.6) from a client application. The server contains a filter which intercepts any requests, checks that the user is logged in and has appropriate permissions and then continues with the request, passing it on to the standard Tomcat WebdavServlet. On the server-side, once the user logs in, the user info is added to the session. What I can't figure out is how to construct the request on the client side to perform the login (a servlet url with some parameters attached) and webDAV requests (get, lock, put, etc.) so that the user info gets properly added to the session by the filter, and how to access this user info in the session from the client. Is this possible, and if so, what methods are used? I've searched through the mail archives and seen some references to sessions and cookies, but so far have not had any luck getting it to work. Any help appreciated.


Mark Wood


--------------------------------------------------------------------- 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]



Reply via email to