Hi Remy and thanks for your help,
To answer your questions :


Remy Maucherat wrote:

> > I'm trying to use the slide client API (TC 3.2.1 ,slide M8)
> >
> > I've got the following errors while querying the server :
> >
> > 1)
> > WARNING - Access denied on /users by user /users/guest for action
> /actions/read
> > 20 Mar 2001 17:08:21 - WARNING - Access denied on /actions by user
> /users/guest for action
> > /actions/read
> >
> > The propfind request returns a 500 status error, an exception is thrown
> while putting
> > documents :
> > org.apache.webdav.lib.WebdavException: Unable to process request
>
> PROPFIND shouldn't return a 500. It's a request on which URI ?
>

PROPFIND returns a 500 error on /slide/users (it's a mistake)
but return 301 on /slide (move Permanently)

>
> > 2) ok the authentication directives in the file web.xml were commented
> out.Why not.
> > I restart the server with the following directives :
> > tomcat-users.xml :
> >  <user name="john"  password="john"   roles="tomcat,role1,root" />
> > Domain.xml : unchanged
> >
> > 3) The result is the same. Adding authentication directives has just allow
> to display a pop
> > up when accessing /slide on my server (john,john works fine) and display
> the Directory
> > Listing / with full slide informations
> >
> > 4) I noticed a difference between this two tries :
> > In the second case, the server doesn't log anything in the debug
> interface. Why ??
>
> What do you mean by not log anything ? It should still log the HTTP requests
> it executes.
>

I mean that the window in which the server has been started does not log
anything . Is there a debug log file elsewhere ?

>
> > I'm not sure to understand exactly how slide manage users. Perhaps I could
> have also a
> > configuration problem.
> >
> > 5 ) So to resume :
> > - I place the slide.war in the webapps repository
> > - I configure servers.xml and mod_jk.conf to allow servlets execution in
> slide repository
> > - I add authentication directives in the web.xml file (3)
> > - I start my server , full information are displayed and the slide
> repository  has been
> > created.
> > - I access /slide via my web browser , and I authenticate myself with
> john,john
> > - Ok it's work (Clicking on actions does not work !)
>
> That is normal, since john doesn't have permission to read that.
>

Ok.

>
> > - Now I try to do the same with the client API :
> > WebdavClient client = new WebdavClient();
> > client.startSession("localhost", 8080);
> > client.setCredentials("john","john");
> > and then : getMethod, putMethod , propfind as describe in examples ...
> >
> > Why it doesn't work ?
>
> John should be able to do a PUT in the /files collection. What kind of
> PROPFIND fails ?
>

In fact the server said :

Request: PUT /files/myFile.txt HTTP/1.1
Response: HTTP/1.1 405 Method Not Allowed
PUT  to /files/myFile.txt : 405  Method Not Allowed

>

This is why I feel I have  a configuration problem !


>
> Remy

I've got an other question.
Can I authenticate all users of my organization without adding them in the
tomcat-users.xml and the Domain.xml  files?

Thanks again


Reply via email to