RE: sub-folders not displaying
Hi all, I looked into this some more at the weekend and it turns out that there's a bug in slide's webdav client version 2.1. See http://issues.apache.org/bugzilla/show_bug.cgi?id=32886 I think this must only apply though if Slide is not being used as the webdav server, eg one uses Apache's mod_dav module (like I am) or some other implementation. Anyway, I downloaded the 2.1 source with the backported bug fix and it is now listing sub-directories just fine. Cheers, Owen >-- Original Message -- >Reply-To: "Slide Users Mailing List" >Date: Fri, 26 Aug 2005 14:38:01 +0100 >From: "Owen Byrne" <[EMAIL PROTECTED]> >Subject: RE: sub-folders not displaying >To: "Slide Users Mailing List" , > "'Slide Users Mailing List'" > > >Hi folks, > Many thanks for your helpful replies. Unfortunately the report method returns >nothing (is this specific to slide? (ie not webdav) because I'm not using >slide on the server side) When I turn on debug I can see that the server's >response is indeed returning the sub-folders within its xml response when >I use propfind() and listWebdavResources(). However (very strangely) the >array returned by listWebdavResources() only contains a single sub-directory >every time. So I turned my attention to propfindMethod() which I use as: > >Enumeration props = webdavResource.propfindMethod(path, >DepthSupport.DEPTH_INFINITY); > >while (props.hasMoreElements()){ > >XMLResponseMethodBase.Response xrm = > (XMLResponseMethodBase.Response)props.nextElement(); > > >if (xrm.getHref().endsWith("/")){ > >System.out.println(xrm.getHref() + " is a folder"); > >} > >} > >However, this is not an elegant solution. Is there a better way of determining >whether the result from a propfind is a directory? (rather than testing if >it ends with "/"). Also, any suggestions as to why report() returns nothing >and why listWebdavResources only returns a single sub-directory? > >cheers, >Owen > > > >>-- Original Message -- >>Reply-To: "Slide Users Mailing List" >>From: "MARENDY, Anthony" <[EMAIL PROTECTED]> >>To: 'Slide Users Mailing List' >>Subject: RE: sub-folders not displaying >>Date: Tue, 23 Aug 2005 12:39:47 +1000 >> >> >>I've used the listWebdavResources() method to list collections without any >>problems. >> >>e.g >> >> >>WebdavResource [] children = res.listWebdavResources(); >>String currentPath = res.getPath(); >>for (int x = 0; x < children.length; x++) { >>if (children[x].isCollection() == true) { >>// This is a collection. >>} >>else { >>// This is a file. >>} >>} >> >>Regards, >>Anthony. >> >>> -Original Message- >>> From: Miguel Figueiredo [SMTP:[EMAIL PROTECTED] >>> Sent: Tuesday, 16 August 2005 18:40 >>> To: 'Slide Users Mailing List' >>> Subject:RE: sub-folders not displaying >>> >>> >>> Hello folks, >>> >>> I use PROPFIND method, and all goes well. >>> >>> Hope this helps, >>> Miguel Figueiredo >>> >>> -Original Message- >>> From: Burnside, Phillip (UK - Glasgow) >>> [mailto:[EMAIL PROTECTED] >>> Sent: terça-feira, 16 de Agosto de 2005 9:22 >>> To: Slide Users Mailing List >>> Subject: RE: sub-folders not displaying >>> >>> Owen, >>> >>> I remember encountering this problem. >>> >>> I *think* you need to use the Report method...but it is a while since >I've >>> looked at it. >>> >>> I'll have a look later in the week and get back to you, >>> >>> Rgrds >>> Phil >>> >>> -Original Message- >>> From: Owen Byrne [mailto:[EMAIL PROTECTED] >>> Sent: Tue 16/08/2005 09:05 >>> To: slide-user@jakarta.apache.org >>> Cc: >>> Subject: sub-folders not displaying >>> >>> >>> >>> Hi, >>> >>> I'm developing a web-dav client and I can't seem to view >>> sub-folders using >>> the slide webdavclient library (version 2.1). >>> >>> (on the server side I'm ru
RE: sub-folders not displaying
Hi folks, Many thanks for your helpful replies. Unfortunately the report method returns nothing (is this specific to slide? (ie not webdav) because I'm not using slide on the server side) When I turn on debug I can see that the server's response is indeed returning the sub-folders within its xml response when I use propfind() and listWebdavResources(). However (very strangely) the array returned by listWebdavResources() only contains a single sub-directory every time. So I turned my attention to propfindMethod() which I use as: Enumeration props = webdavResource.propfindMethod(path, DepthSupport.DEPTH_INFINITY); while (props.hasMoreElements()){ XMLResponseMethodBase.Response xrm = (XMLResponseMethodBase.Response)props.nextElement(); if (xrm.getHref().endsWith("/")){ System.out.println(xrm.getHref() + " is a folder"); } } However, this is not an elegant solution. Is there a better way of determining whether the result from a propfind is a directory? (rather than testing if it ends with "/"). Also, any suggestions as to why report() returns nothing and why listWebdavResources only returns a single sub-directory? cheers, Owen >-- Original Message -- >Reply-To: "Slide Users Mailing List" >From: "MARENDY, Anthony" <[EMAIL PROTECTED]> >To: 'Slide Users Mailing List' >Subject: RE: sub-folders not displaying >Date: Tue, 23 Aug 2005 12:39:47 +1000 > > >I've used the listWebdavResources() method to list collections without any >problems. > >e.g > > >WebdavResource [] children = res.listWebdavResources(); >String currentPath = res.getPath(); >for (int x = 0; x < children.length; x++) { >if (children[x].isCollection() == true) { >// This is a collection. >} >else { >// This is a file. >} >} > >Regards, >Anthony. > >> -Original Message----- >> From:Miguel Figueiredo [SMTP:[EMAIL PROTECTED] >> Sent:Tuesday, 16 August 2005 18:40 >> To: 'Slide Users Mailing List' >> Subject: RE: sub-folders not displaying >> >> >> Hello folks, >> >> I use PROPFIND method, and all goes well. >> >> Hope this helps, >> Miguel Figueiredo >> >> -Original Message- >> From: Burnside, Phillip (UK - Glasgow) >> [mailto:[EMAIL PROTECTED] >> Sent: terça-feira, 16 de Agosto de 2005 9:22 >> To: Slide Users Mailing List >> Subject: RE: sub-folders not displaying >> >> Owen, >> >> I remember encountering this problem. >> >> I *think* you need to use the Report method...but it is a while since I've >> looked at it. >> >> I'll have a look later in the week and get back to you, >> >> Rgrds >> Phil >> >> -Original Message- >> From: Owen Byrne [mailto:[EMAIL PROTECTED] >> Sent: Tue 16/08/2005 09:05 >> To: slide-user@jakarta.apache.org >> Cc: >> Subject: sub-folders not displaying >> >> >> >> Hi, >> >> I'm developing a web-dav client and I can't seem to view >> sub-folders using >> the slide webdavclient library (version 2.1). >> >> (on the server side I'm running Apache/2.0.54 DAV/2 ) I can connect >> to a >> webdav folder just fine and the *files* within folders display just >> fine. >> However, sub-folders, >> >> although they do exist, do not display! I've verified that >> everything is >> ok on the server side through the use of >> >> alternative webdav clients such as "windows web folders" and "Dav >> Explorer" >> which (don't use the slide libraries) >> >> and these clients list files & sub-directories as expected. >> >> >> >> eg directory structure: >> >> >> >> webdav-folder >> >> | >> >> |---sub-folder1 >> >> | | >> >> | |--sub-folder1-1 >> >> | | >> >> | |--sub-folder1-2 >> >> | | >> >> | |--file3 >> >> | | >> >> | |--file4 >> >> | >> >> |---sub-folder2 >> >> | >> >
RE: sub-folders not displaying
I've used the listWebdavResources() method to list collections without any problems. e.g WebdavResource [] children = res.listWebdavResources(); String currentPath = res.getPath(); for (int x = 0; x < children.length; x++) { if (children[x].isCollection() == true) { // This is a collection. } else { // This is a file. } } Regards, Anthony. > -Original Message- > From: Miguel Figueiredo [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, 16 August 2005 18:40 > To: 'Slide Users Mailing List' > Subject: RE: sub-folders not displaying > > > Hello folks, > > I use PROPFIND method, and all goes well. > > Hope this helps, > Miguel Figueiredo > > -Original Message- > From: Burnside, Phillip (UK - Glasgow) > [mailto:[EMAIL PROTECTED] > Sent: terça-feira, 16 de Agosto de 2005 9:22 > To: Slide Users Mailing List > Subject: RE: sub-folders not displaying > > Owen, > > I remember encountering this problem. > > I *think* you need to use the Report method...but it is a while since I've > looked at it. > > I'll have a look later in the week and get back to you, > > Rgrds > Phil > > -Original Message- > From: Owen Byrne [mailto:[EMAIL PROTECTED] > Sent: Tue 16/08/2005 09:05 > To: slide-user@jakarta.apache.org > Cc: > Subject: sub-folders not displaying > > > > Hi, > >I'm developing a web-dav client and I can't seem to view > sub-folders using > the slide webdavclient library (version 2.1). > > (on the server side I'm running Apache/2.0.54 DAV/2 ) I can connect > to a > webdav folder just fine and the *files* within folders display just > fine. > However, sub-folders, > > although they do exist, do not display! I've verified that > everything is > ok on the server side through the use of > > alternative webdav clients such as "windows web folders" and "Dav > Explorer" > which (don't use the slide libraries) > > and these clients list files & sub-directories as expected. > > > > eg directory structure: > > > > webdav-folder > > | > > |---sub-folder1 > > | | > > | |--sub-folder1-1 > > | | > > | |--sub-folder1-2 > > | | > > | |--file3 > > | | > > | |--file4 > > | > > |---sub-folder2 > > | > > |---file1 > > | > > |---file2 > > > > > > Using the slide client libraries, I connect to > http://localhost/webdav-folder > and perform a WebdavResource.list() -this will return the names of > >file1 and file2 but *not* sub-folder1 or sub-folder2. Other methods > such > as getChildResources(), listWebdavResources() -also only return > *file* resources! > > > > > > If I know that "sub-folder1" exists, I can connect to > http://localhost/webdav-folder/sub-folder1 > and successfully list file3 and file4, but there's no sign of > sub-folder1-1 > or sub-folder1-2 ! > > > > I've also tried the commandline jakarta slide client which produces > the same > wrong results. What's frustrating is that other web-dav clients > > such as DAV Explorer (which doesn't use slide) work fine. > > > > > > A similar question was asked on this forum recently which received > some replies, > but alas not a solution. Has anyone > > else encountered this, or can point me in the right direction? > > > > Many Thanks for your help, > > Owen > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > IMPORTANT NOTICE &g
RE: sub-folders not displaying
Hello folks, I use PROPFIND method, and all goes well. Hope this helps, Miguel Figueiredo -Original Message- From: Burnside, Phillip (UK - Glasgow) [mailto:[EMAIL PROTECTED] Sent: terça-feira, 16 de Agosto de 2005 9:22 To: Slide Users Mailing List Subject: RE: sub-folders not displaying Owen, I remember encountering this problem. I *think* you need to use the Report method...but it is a while since I've looked at it. I'll have a look later in the week and get back to you, Rgrds Phil -Original Message- From: Owen Byrne [mailto:[EMAIL PROTECTED] Sent: Tue 16/08/2005 09:05 To: slide-user@jakarta.apache.org Cc: Subject: sub-folders not displaying Hi, I'm developing a web-dav client and I can't seem to view sub-folders using the slide webdavclient library (version 2.1). (on the server side I'm running Apache/2.0.54 DAV/2 ) I can connect to a webdav folder just fine and the *files* within folders display just fine. However, sub-folders, although they do exist, do not display! I've verified that everything is ok on the server side through the use of alternative webdav clients such as "windows web folders" and "Dav Explorer" which (don't use the slide libraries) and these clients list files & sub-directories as expected. eg directory structure: webdav-folder | |---sub-folder1 | | | |--sub-folder1-1 | | | |--sub-folder1-2 | | | |--file3 | | | |--file4 | |---sub-folder2 | |---file1 | |---file2 Using the slide client libraries, I connect to http://localhost/webdav-folder and perform a WebdavResource.list() -this will return the names of file1 and file2 but *not* sub-folder1 or sub-folder2. Other methods such as getChildResources(), listWebdavResources() -also only return *file* resources! If I know that "sub-folder1" exists, I can connect to http://localhost/webdav-folder/sub-folder1 and successfully list file3 and file4, but there's no sign of sub-folder1-1 or sub-folder1-2 ! I've also tried the commandline jakarta slide client which produces the same wrong results. What's frustrating is that other web-dav clients such as DAV Explorer (which doesn't use slide) work fine. A similar question was asked on this forum recently which received some replies, but alas not a solution. Has anyone else encountered this, or can point me in the right direction? Many Thanks for your help, Owen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte & Touche LLP. Deloitte & Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte & Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications
RE: sub-folders not displaying
Owen, I remember encountering this problem. I *think* you need to use the Report method...but it is a while since I've looked at it. I'll have a look later in the week and get back to you, Rgrds Phil -Original Message- From: Owen Byrne [mailto:[EMAIL PROTECTED] Sent: Tue 16/08/2005 09:05 To: slide-user@jakarta.apache.org Cc: Subject: sub-folders not displaying Hi, I'm developing a web-dav client and I can't seem to view sub-folders using the slide webdavclient library (version 2.1). (on the server side I'm running Apache/2.0.54 DAV/2 ) I can connect to a webdav folder just fine and the *files* within folders display just fine. However, sub-folders, although they do exist, do not display! I've verified that everything is ok on the server side through the use of alternative webdav clients such as "windows web folders" and "Dav Explorer" which (don't use the slide libraries) and these clients list files & sub-directories as expected. eg directory structure: webdav-folder | |---sub-folder1 | | | |--sub-folder1-1 | | | |--sub-folder1-2 | | | |--file3 | | | |--file4 | |---sub-folder2 | |---file1 | |---file2 Using the slide client libraries, I connect to http://localhost/webdav-folder and perform a WebdavResource.list() -this will return the names of file1 and file2 but *not* sub-folder1 or sub-folder2. Other methods such as getChildResources(), listWebdavResources() -also only return *file* resources! If I know that "sub-folder1" exists, I can connect to http://localhost/webdav-folder/sub-folder1 and successfully list file3 and file4, but there's no sign of sub-folder1-1 or sub-folder1-2 ! I've also tried the commandline jakarta slide client which produces the same wrong results. What's frustrating is that other web-dav clients such as DAV Explorer (which doesn't use slide) work fine. A similar question was asked on this forum recently which received some replies, but alas not a solution. Has anyone else encountered this, or can point me in the right direction? Many Thanks for your help, Owen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to the statement below or contact the sender. This communication is from Deloitte & Touche LLP. Deloitte & Touche LLP is a limited liability partnership registered in England and Wales with registered number OC303675. A list of members' names is available for inspection at Stonecutter Court, 1 Stonecutter Street, London EC4A 4TR, United Kingdom, the firm's principal place of business and registered office. Deloitte & Touche LLP is authorised and regulated by the Financial Services Authority. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please return it with the title "received in error" to [EMAIL PROTECTED] then delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. When addressed to our clients, any opinions or advice contained in th