Bug 34741 - Problem navigation client folder
Problem navigation client folder
Status: NEW
Product: Slide
Classification: Unclassified
Component: WebDAV client
2.1
Other other
: P2 normal (vote)
: ---
Assigned To: Slide Developer List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2005-05-04 16:54 UTC by Christoph Schmidt
Modified: 2005-11-07 03:19 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Schmidt 2005-05-04 16:54:28 UTC
I test the webdav client against a webdav resource in

https://www.sharemation.com

The method webdavResource.getChildResources() did not provide
the child folder. The reason is the following line the methode

WebdavResource.setWebdavProperties(Enumeration responses)
{
...
    char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/")
                       + URIUtil.getName(href)).toCharArray();
...
}

href ends with an "/" and URIUtil.getName(href) returns "".
So not subfolder is added.

I would suppose something like:

    char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/")
                       + URIUtil.encodePath(URIUtil.getName(
                       getName(href)))).toCharArray();

But I'm not an expert...


The Webdav server responded:
>>>>>>>  to  server  ---------------------------------------------------
PROPFIND /chrschmidt/ HTTP/1.1
Authorization: Basic Y2hyc2NobWlkdDpnYW5kYWxm
Content-Type: text/xml; charset=utf-8
User-Agent: Jakarta Commons-HttpClient/3.0-rc2
Host: www.sharemation.com
Cookie: $Version=0; XythosSessionID1=[B@188aae--62923082; $Path=/
Depth: 1
Content-Length: 207
Depth: 1

<D:propfind xmlns:D="DAV:">
   <D:prop>
      <D:displayname>
      </D:displayname>
      <D:getcontentlength>
      </D:getcontentlength>
      <D:getcontenttype>
      </D:getcontenttype>
      <D:resourcetype>
      </D:resourcetype>
      <D:getlastmodified>
      </D:getlastmodified>
      <D:lockdiscovery>
      </D:lockdiscovery>
   </D:prop>
</D:propfind>
------------------------------------------------------------------------

<<<<<<< from server  ---------------------------------------------------
HTTP/1.1 207 Multi-Status
Date: Wed, 04 May 2005 14:52:40 GMT
Content-Type: text/xml;charset=UTF-8
Content-Length: 8466
Server: Apache-Coyote/1.1
Connection: close

<D:multistatus
      xmlns:D="DAV:"
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:XS="http://www.w3.org/2001/XMLSchema"
      xmlns:XSI="http://www.w3.org/2001/XMLSchema-instance">

   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/fipa00001.htm
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-21T09:10:55-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:getcontentlength>
                  11883
            </D:getcontentlength>
            <D:displayname>
               <![CDATA[
                  fipa00001.htm
               ]]>
            </D:displayname>
            <D:getcontenttype>
               <![CDATA[
                  text/html
               ]]>
            </D:getcontenttype>
            <D:getcontentlanguage>
            </D:getcontentlanguage>
            <D:resourcetype>
            </D:resourcetype>
            <D:getlastmodified>
                  Tue, 21 Jan 2003 17:10:55 GMT
            </D:getlastmodified>
            <D:getetag>
               <![CDATA[
                  "685924-656047"
               ]]>
            </D:getetag>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/fipa00009.htm
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-21T09:10:57-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:getcontentlength>
                  11035
            </D:getcontentlength>
            <D:displayname>
               <![CDATA[
                  fipa00009.htm
               ]]>
            </D:displayname>
            <D:getcontenttype>
               <![CDATA[
                  text/html
               ]]>
            </D:getcontenttype>
            <D:getcontentlanguage>
            </D:getcontentlanguage>
            <D:resourcetype>
            </D:resourcetype>
            <D:getlastmodified>
                  Tue, 21 Jan 2003 17:10:57 GMT
            </D:getlastmodified>
            <D:getetag>
               <![CDATA[
                  "685925-656048"
               ]]>
            </D:getetag>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/test/
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-22T09:23:02-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:displayname>
               <![CDATA[
                  test
               ]]>
            </D:displayname>
            <D:resourcetype>
               <D:collection>
               </D:collection>
            </D:resourcetype>
            <D:getlastmodified>
                  Wed, 04 May 2005 13:50:27 GMT
            </D:getlastmodified>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/fipa00008.htm
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-21T09:10:50-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:getcontentlength>
                  11527
            </D:getcontentlength>
            <D:displayname>
               <![CDATA[
                  fipa00008.htm
               ]]>
            </D:displayname>
            <D:getcontenttype>
               <![CDATA[
                  text/html
               ]]>
            </D:getcontenttype>
            <D:getcontentlanguage>
            </D:getcontentlanguage>
            <D:resourcetype>
            </D:resourcetype>
            <D:getlastmodified>
                  Tue, 21 Jan 2003 17:10:50 GMT
            </D:getlastmodified>
            <D:getetag>
               <![CDATA[
                  "685922-656045"
               ]]>
            </D:getetag>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/test3/
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-23T01:05:35-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:displayname>
               <![CDATA[
                  test3
               ]]>
            </D:displayname>
            <D:resourcetype>
               <D:collection>
               </D:collection>
            </D:resourcetype>
            <D:getlastmodified>
                  Thu, 23 Jan 2003 09:05:35 GMT
            </D:getlastmodified>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/fipa00007.htm
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-21T09:10:52-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:getcontentlength>
                  10998
            </D:getcontentlength>
            <D:displayname>
               <![CDATA[
                  fipa00007.htm
               ]]>
            </D:displayname>
            <D:getcontenttype>
               <![CDATA[
                  text/html
               ]]>
            </D:getcontenttype>
            <D:getcontentlanguage>
            </D:getcontentlanguage>
            <D:resourcetype>
            </D:resourcetype>
            <D:getlastmodified>
                  Tue, 21 Jan 2003 17:10:52 GMT
            </D:getlastmodified>
            <D:getetag>
               <![CDATA[
                  "685923-656046"
               ]]>
            </D:getetag>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/test2/
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-22T09:24:33-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:displayname>
               <![CDATA[
                  test2
               ]]>
            </D:displayname>
            <D:resourcetype>
               <D:collection>
               </D:collection>
            </D:resourcetype>
            <D:getlastmodified>
                  Wed, 22 Jan 2003 17:24:33 GMT
            </D:getlastmodified>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/test5/
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2005-05-04T04:41:52-0700
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:displayname>
               <![CDATA[
                  test5
               ]]>
            </D:displayname>
            <D:resourcetype>
               <D:collection>
               </D:collection>
            </D:resourcetype>
            <D:getlastmodified>
                  Wed, 04 May 2005 11:42:38 GMT
            </D:getlastmodified>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
   <D:response xmlns:ns-1="http://www.xythos.com/namespaces/StorageServer">
      <D:href>
            https://www.sharemation.com/chrschmidt/
      </D:href>
      <D:propstat>
         <D:prop>
            <D:creationdate>
                  2003-01-21T09:05:09-0800
            </D:creationdate>
            <D:lockdiscovery>
            </D:lockdiscovery>
            <D:displayname>
               <![CDATA[
                  chrschmidt
               ]]>
            </D:displayname>
            <D:resourcetype>
               <D:collection>
               </D:collection>
            </D:resourcetype>
            <D:getlastmodified>
                  Wed, 04 May 2005 11:41:52 GMT
            </D:getlastmodified>
            <D:supportedlock>
               <D:lockentry>
                  <D:lockscope>
                     <D:exclusive>
                     </D:exclusive>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
               <D:lockentry>
                  <D:lockscope>
                     <D:shared>
                     </D:shared>
                  </D:lockscope>
                  <D:locktype>
                     <D:write>
                     </D:write>
                  </D:locktype>
               </D:lockentry>
            </D:supportedlock>
            <ns-1:sharefromschrschmidt_x0040_1_x003a_29094 XSI:type="XS:string">
            </ns-1:sharefromschrschmidt_x0040_1_x003a_29094>
            <ns-1:NavigationExpansionchrschmidt_x0040_1_x003a_29094
                  SOAP-ENC:arrayType="XS:string[2]"
                  XSI:type="SOAP-ENC:Array">

               <XS:string xmlns:XS="http://www.w3.org/2001/XMLSchema">
                  <![CDATA[
                     bookmarks
                  ]]>
               </XS:string>
               <XS:string xmlns:XS="http://www.w3.org/2001/XMLSchema">
                  <![CDATA[
                     utilities
                  ]]>
               </XS:string>
            </ns-1:NavigationExpansionchrschmidt_x0040_1_x003a_29094>
         </D:prop>
         <D:status>
               HTTP/1.1 200 OK
         </D:status>
      </D:propstat>
   </D:response>
</D:multistatus>
------------------------------------------------------------------------
Comment 1 Nicola Buso 2005-11-07 12:19:41 UTC
I'm facing with this bug; is somebody looking how to resolve it?
I also note that this bug is still present in the CVS tree.
I'm trying the code suggested by Christoph Schmidt, subsequent tests show this
code work.