You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by je...@apache.org on 2001/04/05 07:37:09 UTC
cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/util WebdavResource.java
jericho 01/04/04 22:37:09
Modified: src/webdav/client/src/org/apache/webdav/util
WebdavResource.java
Log:
- Fix to check the specified URI used.
If you try to change the same collection again,
It was failed.
Revision Changes Path
1.28 +21 -21 jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java
Index: WebdavResource.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- WebdavResource.java 2001/04/05 01:29:25 1.27
+++ WebdavResource.java 2001/04/05 05:37:09 1.28
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v 1.27 2001/04/05 01:29:25 jericho Exp $
- * $Revision: 1.27 $
- * $Date: 2001/04/05 01:29:25 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/util/WebdavResource.java,v 1.28 2001/04/05 05:37:09 jericho Exp $
+ * $Revision: 1.28 $
+ * $Date: 2001/04/05 05:37:09 $
*
* ====================================================================
*
@@ -443,10 +443,6 @@
private void setAllProp(HttpURL httpURL)
throws WebdavException, IOException {
- // Let me do just once, do not repeat.
- if (getUsed())
- return;
-
// Basically, get resources with depth 1.
Enumeration responses = propfindMethod(DepthSupport.DEPTH_1);
@@ -608,9 +604,12 @@
throws WebdavException, IOException {
this.httpURL = httpURL;
- setExistence(false);
- if (action) {
- setAllProp(httpURL);
+ // Let me do just once, do not repeat.
+ if (!getUsed()) {
+ // make its existence false
+ setExistence(false);
+ if (action)
+ setAllProp(httpURL);
}
}
@@ -633,9 +632,12 @@
throws WebdavException, IOException {
this.httpURL = new HttpURL(httpURL, path);
- setExistence(false);
- if (action) {
- setAllProp(this.httpURL);
+ // Let me do just once, do not repeat.
+ if (!getUsed()) {
+ // make its existence false
+ setExistence(false);
+ if (action)
+ setAllProp(this.httpURL);
}
}
@@ -1200,9 +1202,8 @@
public WebdavResources getChildren()
throws WebdavException, IOException {
- // Check If the http URl is changed.
- if (!getUsed())
- setHttpURL(httpURL);
+ // Check if the http URL is used.
+ setHttpURL(httpURL);
return children;
}
@@ -1219,8 +1220,8 @@
public String[] list()
throws WebdavException, IOException {
- if (!getUsed())
- setHttpURL(httpURL);
+ // Check if the http URL is used.
+ setHttpURL(httpURL);
Enumeration hrefs = children.getResourceNames();
// To be atomic.
@@ -1255,9 +1256,8 @@
public Vector listInDetail()
throws WebdavException, IOException {
- // If information for listing is changed, go for it.
- if (!getUsed())
- setHttpURL(httpURL);
+ // Check if the http URL is used.
+ setHttpURL(httpURL);
Enumeration hrefs = children.getResourceNames();
Vector hrefList = new Vector();