You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Stefan Lützkendorf <lu...@apache.org> on 2004/08/20 11:02:32 UTC

Re: Odd behavior with getChildResources of a Collection on WebSph ere

Hi Ritu,

if you set default-servlet to false please use /* as servlet mapping pattern.

i.e.
  <url-pattern>/*</url-pattern>
instead of
  <url-pattern>/</url-pattern>

I'm not quite sure that solves your problem but it solves the problem
with the double slashes.

Regards, Stefan

Ritu Kedia wrote:
> Thanks for the reply Ingo.
> 
> I am on Slide 2.1M1
> 
> Request:
> ========
> PROPFIND /slide/files/ProjectArea/prjct000000000001000/Module1/Folder1
> HTTP/1.1 Authorization: Basic SomeString:-1; $Path=/ Content-Length: 207
> Depth: 0  <?xml version="1.0" encoding="utf-8" ?><D:propfind
> xmlns:D="DAV:"><D:prop><D:displayname/><D:getcontentlength/><D:getcontenttyp
> e/><D:resourcetype/><D:getlastmodified/><D:lockdiscovery/></D:prop></D:propf
> ind>
> 
> Response:
> =========
> HTTP/1.1 207 Unknown Server: WebSphere Application Server/5.0 Content-Type:
> text/xml; charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked
> 364 <?xml version="1.0" encoding="UTF-8"?> <D:multistatus xmlns:D="DAV:">
> <D:response>
> <D:href>/slide//files/ProjectArea/prjct000000000001000/Module1/Folder1</D:hr
> ef>         <D:propstat>             <D:prop>
> <D:getcontentlength>0</D:getcontentlength>                 <D:resourcetype>
> <D:collection />                 </D:resourcetype>
> <D:getlastmodified>Fri, 20 Aug 2004 05:52:16 GMT</D:getlastmodified>
> <D:lockdiscovery />             </D:prop>             <D:status>HTTP/1.1 200
> OK</D:status>         </D:propstat>         <D:propstat>
> <D:prop>                 <D:displayname />                 <D:getcontenttype
> />             </D:prop>             <D:status>HTTP/1.1 404 Not
> Found</D:status>         </D:propstat>     </D:response> </D:multistatus>
> 0
> 
> 
> Some information that may be useful: On WebSphere WebdavServlet is not
> recognized as the default servlet even though the url-pattern under
> servlet-mapping, in web.xml is "/": <url-pattern>/</url-pattern>
> I had to set the default-servlet init parameter to false.
> 
> Regards,
> Ritu
> 
> -----Original Message-----
> From: Ingo Brunberg [mailto:ib@fiz-chemie.de]
> Sent: Thursday, August 19, 2004 9:18 PM
> To: slide-user@jakarta.apache.org
> Subject: Re: Odd behavior with getChildResources of a Collection on
> WebSphere
> 
> 
> Hi Ritu,
> 
> please post a trace (tcpmon, ethereal, ...) of the session.
> Btw., are you using Slide 2.1-beta1?
> 
> Ingo
> 
> 
>>I have a slide deployment running on WebSphere with Oracle Store. I see an
>>odd behavior with getChildResources of a Collection: the collection itself
>>appears as one of its children. The same store when connected via JBoss or
>>WebLogic works fine. Could someone please help?
>>I read mail trail on similar issue with WebFolder on XP. But the cause
> 
> there
> 
>>was different:
>>
> 
> http://www.greenbytes.de/tech/webdav/webfolder-client-list.html#issue-folder
> 
>>-mismatch
>>
>>I am not connecting to slide on port 80. I connect to it directly on the
> 
> app
> 
>>server's port, which in case of websphere is 9080.
>>				HttpURL hrl = new HttpURL(username,
>>password, "mymachine", 9080, "/slide/");
>>				WebdavResource wdr = new
>>WebdavResource(hrl);
>>
>>
>>If anyone could give me any hints... it would be great.
>>
>>Thanks,
>>Ritu
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-user-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Odd behavior with getChildResources of a Collection on WebSph ere

Posted by Ingo Brunberg <ib...@fiz-chemie.de>.
Ahh, yes of course, the doubled slash is the problem. I missed it
completely.

Ingo

> Hi Ritu,
> 
> if you set default-servlet to false please use /* as servlet mapping pattern.
> 
> i.e.
>   <url-pattern>/*</url-pattern>
> instead of
>   <url-pattern>/</url-pattern>
> 
> I'm not quite sure that solves your problem but it solves the problem
> with the double slashes.
> 
> Regards, Stefan
> 
> Ritu Kedia wrote:
> > Thanks for the reply Ingo.
> > 
> > I am on Slide 2.1M1
> > 
> > Request:
> > ========
> > PROPFIND /slide/files/ProjectArea/prjct000000000001000/Module1/Folder1
> > HTTP/1.1 Authorization: Basic SomeString:-1; $Path=/ Content-Length: 207
> > Depth: 0  <?xml version="1.0" encoding="utf-8" ?><D:propfind
> > xmlns:D="DAV:"><D:prop><D:displayname/><D:getcontentlength/><D:getcontenttyp
> > e/><D:resourcetype/><D:getlastmodified/><D:lockdiscovery/></D:prop></D:propf
> > ind>
> > 
> > Response:
> > =========
> > HTTP/1.1 207 Unknown Server: WebSphere Application Server/5.0 Content-Type:
> > text/xml; charset=UTF-8 Content-Language: en-US Transfer-Encoding: chunked
> > 364 <?xml version="1.0" encoding="UTF-8"?> <D:multistatus xmlns:D="DAV:">
> > <D:response>
> > <D:href>/slide//files/ProjectArea/prjct000000000001000/Module1/Folder1</D:hr
> > ef>         <D:propstat>             <D:prop>
> > <D:getcontentlength>0</D:getcontentlength>                 <D:resourcetype>
> > <D:collection />                 </D:resourcetype>
> > <D:getlastmodified>Fri, 20 Aug 2004 05:52:16 GMT</D:getlastmodified>
> > <D:lockdiscovery />             </D:prop>             <D:status>HTTP/1.1 200
> > OK</D:status>         </D:propstat>         <D:propstat>
> > <D:prop>                 <D:displayname />                 <D:getcontenttype
> > />             </D:prop>             <D:status>HTTP/1.1 404 Not
> > Found</D:status>         </D:propstat>     </D:response> </D:multistatus>
> > 0
> > 
> > 
> > Some information that may be useful: On WebSphere WebdavServlet is not
> > recognized as the default servlet even though the url-pattern under
> > servlet-mapping, in web.xml is "/": <url-pattern>/</url-pattern>
> > I had to set the default-servlet init parameter to false.
> > 
> > Regards,
> > Ritu
> > 
> > -----Original Message-----
> > From: Ingo Brunberg [mailto:ib@fiz-chemie.de]
> > Sent: Thursday, August 19, 2004 9:18 PM
> > To: slide-user@jakarta.apache.org
> > Subject: Re: Odd behavior with getChildResources of a Collection on
> > WebSphere
> > 
> > 
> > Hi Ritu,
> > 
> > please post a trace (tcpmon, ethereal, ...) of the session.
> > Btw., are you using Slide 2.1-beta1?
> > 
> > Ingo
> > 
> > 
> >>I have a slide deployment running on WebSphere with Oracle Store. I see an
> >>odd behavior with getChildResources of a Collection: the collection itself
> >>appears as one of its children. The same store when connected via JBoss or
> >>WebLogic works fine. Could someone please help?
> >>I read mail trail on similar issue with WebFolder on XP. But the cause
> > 
> > there
> > 
> >>was different:
> >>
> > 
> > http://www.greenbytes.de/tech/webdav/webfolder-client-list.html#issue-folder
> > 
> >>-mismatch
> >>
> >>I am not connecting to slide on port 80. I connect to it directly on the
> > 
> > app
> > 
> >>server's port, which in case of websphere is 9080.
> >>				HttpURL hrl = new HttpURL(username,
> >>password, "mymachine", 9080, "/slide/");
> >>				WebdavResource wdr = new
> >>WebdavResource(hrl);
> >>
> >>
> >>If anyone could give me any hints... it would be great.
> >>
> >>Thanks,
> >>Ritu


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org