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 2002/03/27 19:14:09 UTC
cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods UnlockMethod.java
jericho 02/03/27 10:14:09
Modified: src/webdav/client/src/org/apache/webdav/lib/methods
UnlockMethod.java
Log:
- Make code robust (in order to use lock property, it should be webdav state)
Bug reported by: ivanovss@chat.ru
Revision Changes Path
1.12 +5 -4 jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/UnlockMethod.java
Index: UnlockMethod.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/UnlockMethod.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- UnlockMethod.java 22 Jul 2001 03:10:27 -0000 1.11
+++ UnlockMethod.java 27 Mar 2002 18:14:09 -0000 1.12
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/UnlockMethod.java,v 1.11 2001/07/22 03:10:27 remm Exp $
- * $Revision: 1.11 $
- * $Date: 2001/07/22 03:10:27 $
+ * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/UnlockMethod.java,v 1.12 2002/03/27 18:14:09 jericho Exp $
+ * $Revision: 1.12 $
+ * $Date: 2002/03/27 18:14:09 $
*
* ====================================================================
*
@@ -171,7 +171,8 @@
*/
public void parseResponse(InputStream is)
throws IOException {
- if (getStatusCode() == HttpStatus.SC_NO_CONTENT) {
+ if ((getStatusCode() == HttpStatus.SC_NO_CONTENT) &&
+ (this.state instanceof WebdavState)) {
((WebdavState) state).removeLock(getPath(), lockToken);
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>