You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Philip A. McGee" <pm...@xfi.com> on 2005/11/16 19:24:33 UTC

SimpleWebdavServlet returns 404 GETting Root Collection

Hello,

I am investigating the use of the Jackrabbit server via its standard 
WebDAV protocol as implemented by SimpleWebdavServlet.  I have had
builds of the server running previously, but with the current codebase
the server returns a 404 error when I try to GET the root collection.  

This behavior can be observed by clicking the link on the page returned
by index.jsp.  Admittedly, the repository is empty, but previously getting  
the root collection returned ".." and "jcr:system" children, and the behavior 
prevents me from connecting to the server with any of the WebDAV clients I
have tried.

I added some debugging messages to AbstractWebdavServlet and find
the DavResource retrieved from the request has the following properties

resource.getDisplayName() = null
resource.getResourcePath() = null
resource.getHref() = http://localhost/jackrabbit-server/repository/
resource.isCollection() = true

and the problem occurs in the call from doGet() to spoolResource()

methodCode = 2
doGet()
spoolResource()
!resource.exists()


Can anyone tell me if this new behavior is the intended behavior?  Can
anyone else reproduce it, or is the problem in my build/deployment?

I would appreciate any help that can be offered.

Best Regards,
Phil McGee




Re: SimpleWebdavServlet returns 404 GETting Root Collection

Posted by Angela Schreiber <an...@day.com>.
hi

no reason for apologies...
i created a jira issue (enhancement) for this.

http://issues.apache.org/jira/browse/JCR-276

regards
angela

Re: SimpleWebdavServlet returns 404 GETting Root Collection

Posted by "Philip A. McGee" <pm...@xfi.com>.
My apologies.  Next time the subject line will be "Thank you Angela".

Regards,
Phil

Angela Schreiber wrote:
> hi philip
> 
> glad to hear!
> but i was aware, that a single line comment in
> a long mail would not attract too much attention :)
> 
>> Thank you Angela. 
> 
> 
> you are welcome
> angela
> 
> 


Re: SimpleWebdavServlet returns 404 GETting Root Collection

Posted by Angela Schreiber <an...@day.com>.
hi philip

glad to hear!
but i was aware, that a single line comment in
a long mail would not attract too much attention :)

> Thank you Angela. 

you are welcome
angela

Re: SimpleWebdavServlet returns 404 GETting Root Collection

Posted by "Philip A. McGee" <pm...@xfi.com>.
Appending the workspace name to the request URL did indeed solve my problem.  I am up and running again.

Thank you Angela.  

Phil

Angela Schreiber wrote:
> hi philip
> 
> the changes commited with rev. 331281 modified the
> default locator-factory inside the simple webdav
> application. consequently its now required to
> indicate a workspace which you want to access
> the repository with. in contrast to the jcr
> server servlet there is currently no 'root' node
> available with http://localhost/jackrabbit-server/repository/,
> so you have to connect to the workspace directely.
> 
> see also:
> http://www.mail-archive.com/jackrabbit-dev@incubator.apache.org/msg03304.html 
> 
> section "additional changes in the simple-server"
> 
> i think, this explains the problem you expirenced.
> 
> kind regards
> angela
> 
> 
> 


Re: SimpleWebdavServlet returns 404 GETting Root Collection

Posted by Angela Schreiber <an...@day.com>.
hi philip

the changes commited with rev. 331281 modified the
default locator-factory inside the simple webdav
application. consequently its now required to
indicate a workspace which you want to access
the repository with. in contrast to the jcr
server servlet there is currently no 'root' node
available with http://localhost/jackrabbit-server/repository/,
so you have to connect to the workspace directely.

see also:
http://www.mail-archive.com/jackrabbit-dev@incubator.apache.org/msg03304.html
section "additional changes in the simple-server"

i think, this explains the problem you expirenced.

kind regards
angela