[prev in list] [next in list] [prev in thread] [next in thread]
List: slide-dev
Subject: DO NOT REPLY [Bug 32886] - client webdav lib doesn't return child collections using listwebdavresou
From: bugzilla () apache ! org
Date: 2006-02-14 22:32:08
Message-ID: 20060214223208.7EF4ADE () ajax ! apache ! org
[Download RAW message or body]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32886>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32886
dmx_dawg@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From dmx_dawg@hotmail.com 2006-02-14 23:32 -------
With regard to bug 32886
http://issues.apache.org/bugzilla/show_bug.cgi?id=32886
I was wondering what version of the Slide client API the fix was put in, as I
get the same error described in this bug with the 2.1 binary version I
downloaded off the website today. I assume I'd need to use a 2.2 beta or
release candidate(?)
More info:
Folder structure is below ('+' denotes folder, '-' denotes file. Note: these
symbols are not part of the file name):
http://dav.biscu.com/
+NewFolder1
+A New Folder
+SubSubFolder
-MyDocsOnline.txt
-TestFileUpload.txt
-MyDocsOnline.txt
-TestFileUpload.txt
+NewFolder3
-MyDocsOnline.txt
-TestFileUpload.txt
-MyDocsOnline.txt
-TestFileUpload.txt
+NewFolder
-MyDocsOnline.txt
-TestFileUpload.txt
The code I used to test is below:
HttpURL url = new HttpURL("http://dav.Biscu.com/");
url.setUserinfo("dmx_dawg@hotmail.com", "TUSu_618");
WebdavResource wdr = new WebdavResource(url);
recurseResources(wdr, 0);
public void recurseResources(WebdavResource parent, int depth)
throws Exception
{
int MAX_DEPTH = 3;
if(depth > MAX_DEPTH || parent == null)
return;
WebdavResource[] wdrsArray = parent.listWebdavResources();
for(WebdavResource r : wdrsArray)
{
String s = r.isCollection() ? "[COLLECTION] " : "[FILE] ";
System.out.println(repeat("\t", depth) + s + r.getDisplayName
());
if(r.isCollection())
recurseResources(r, depth + 1);
}
}
public String repeat(String s, int n)
{
StringBuffer sb = new StringBuffer();
for(int i = 0; i < n; ++i)
sb.append(s);
return sb.toString();
}
The output was:
[FILE] TestFileUpload.txt
[FILE] MyDocsOnline.txt
[COLLECTION] NewFolder2
[FILE] TestFileUpload.txt
[FILE] MyDocsOnline.txt
[COLLECTION] NewFolder2
[FILE] TestFileUpload.txt
[FILE] MyDocsOnline.txt
[COLLECTION] NewFolder2
[FILE] TestFileUpload.txt
[FILE] MyDocsOnline.txt
[COLLECTION] NewFolder2
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic