Asiri Rathnayake wrote:
Hi Ludovic,
I have been trying to mount xwiki-wedav on XP as a drive but couldn't get it
to work :(
I will explain my setup to you so that you can let me know what i'm doing
wrong.
1. I have integrated xwiki-webdav into an existing XE installation so that
xwiki-webdav root is located under /xwiki/webdav
2. I have written the ROOT servlet as bellow
<code>
protected void doOptions(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException
{
response.setStatus(HttpServletResponse.SC_OK);
response.setHeader("MS-Author-Via", "DAV");
response.setHeader("Content-Language", "en");
response.setHeader("DAV", "1,2");
response.setHeader("Allow", "OPTIONS, GET, HEAD, PROPFIND, LOCK,
UNLOCK");
response.setHeader("Content-Length", "0");
response.flushBuffer();
}
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
resp.sendRedirect("/xwiki");
}
</code>
3. I have following two webapps on jetty (XE Installation)
xwiki-enterprise-hsqldb-1.5/webapps/root <- root webapp
xwiki-enterprise-hsqldb-1.5/webapps/xwiki <- XE
3. And when i do OPTIONS request on "/" using telnet:
[asiri@asiri-desktop xwiki-enterprise-hsqldb-1.5]$ telnet localhost 80
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
OPTIONS / HTTP/1.1
Host: localhsot
HTTP/1.1 200 OK
Date: Sat, 16 Aug 2008 10:34:37 GMT
Server: Jetty/5.1.5 (Linux/2.6.22.14-72.fc6PAE i386 java/1.5.0_11
MS-Author-Via: DAV
Content-Language: en
DAV: 1,2
Allow: OPTIONS, GET, HEAD, PROPFIND, LOCK, UNLOCK
Content-Length: 0
This means that the root servlet is working.
4. I have modified the XP registry to include UseBasicAuth key and set it's
value to 1.
5. But When i try the command
net use * "http://mydavserver/xwiki/webdav/" /User:Admin admin
I get an Access Denied error on XP
6. In the back log of jetty, i get the following log message:
192.168.1.4 - - [16/ao�t/2008:10:27:54 +0000] "OPTIONS / HTTP/1.1" 200 0 14
192.168.1.4 - - [16/ao�t/2008:10:27:54 +0000] "PROPFIND /xwiki HTTP/1.1" 302
0 1
192.168.1.4 - - [16/ao�t/2008:10:27:54 +0000] "PROPFIND /xwiki/ HTTP/1.1"
405 1237 3
This means that the OPTIONS command on root is working but PROPFIND on
/xwiki/ fails (Method Not Implemented). But I can't do much about it because
that comes from the XE installation.
Please help me find the problem with this setup, I'm really stuck here. :`(
Can you try by adding a servlet responding to PROPFIND on /xwiki/. I'm
not sure how to do that in web.xml.
This will be a servlet added to XE.
Ludovic
For the moment, i will start working on some other
feature.
Thanks a lot.
- Asiri
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Ludovic Dubost
Blog:
http://blog.ludovic.org/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost