Hi,

I just upgraded my test server with the latest Slide build and noticed some
unusual behaviour in the filechooser client. I was wondering if any of the
server-side experts in the group could confirm that this is in fact the 
intended PROPFIND
response behaviour.

When using the old server code (from early November) a
PROPFIND "/WebDav-home/file/" returns RESPONSE URLS and RESPONSE PROPERTIES
PROFIND "/WebDav/home/file" returns RESPONSE URLS only

the lateset server code seems to return the following to the client:
PROPFIND "/WebDav-home/file/" returns RESPONSE URLS only
PROFIND "/WebDav/home/file" returns RESPONSE URLS and RESPONSE PROPERTIES

i.e. the opposite behaviour

hence the patch below removes the "/" from the end of the request url 
when a property
is requested to ensure compatibility with the latest server code.

Justin.


Index: src/java/org/apache/webdav/ui/filechooser/dir/SPWebFolder.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/contrib/webdavgui/src/java/org/apache/webdav/ui/filechooser/dir/SPWebFolder.java,v
retrieving revision 1.4
diff -r1.4 SPWebFolder.java
155a156,162
 >     // Ensure that we're not going to get caught out by an extra /
 >     String urlPathSlashIndep;
 >     if (resourceUrlPath.endsWith("/"))
 >         urlPathSlashIndep = resourceUrlPath.substring(0, 
resourceUrlPath.length()-1);
 >     else
 >         urlPathSlashIndep = resourceUrlPath + "/";
 >
186,187c193,194
<
<       if( ! url.endsWith(resourceUrlPath) ) {
---
 >       if( ! url.endsWith(resourceUrlPath)
 >               && ! url.endsWith(urlPathSlashIndep)) {
cvs server: Diffing src/java/org/apache/webdav/ui/filechooser/plafui
cvs server: Diffing src/java/org/apache/webdav/ui/lab
cvs server: Diffing src/java/org/apache/webdav/ui/lib
cvs server: Diffing src/java/org/apache/webdav/ui/lib/methods
Index: src/java/org/apache/webdav/ui/lib/methods/SPPropFindMethod.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/contrib/webdavgui/src/java/org/apache/webdav/ui/lib/methods/SPPropFindMethod.java,v
retrieving revision 1.3
diff -r1.3 SPPropFindMethod.java
146a147,150
 >     // Seems to return null in this case
 >     if (urlPath.endsWith("/"))
 >         urlPath=urlPath.substring(0,urlPath.length()-1);
 >
158d161
<



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to