jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r998219 - /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/LockMethod.java
Date Fri, 17 Sep 2010 17:37:47 GMT
Author: jukka
Date: Fri Sep 17 17:37:46 2010
New Revision: 998219

URL: http://svn.apache.org/viewvc?rev=998219&view=rev
Log:
JCR-2731: LockMethod.getResponseAsLockDiscovery() fails when status==201

Fixed as suggested by Javier Godoy.

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/LockMethod.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/LockMethod.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/LockMethod.java?rev=998219&r1=998218&r2=998219&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/LockMethod.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/client/methods/LockMethod.java
Fri Sep 17 17:37:46 2010
@@ -171,7 +171,8 @@ public class LockMethod extends DavMetho
      */
     @Override
     protected boolean isSuccess(int statusCode) {
-        return statusCode == DavServletResponse.SC_OK;
+        return statusCode == DavServletResponse.SC_OK
+            || statusCode == DavServletResponse.SC_CREATED;
     }
 
     //-----------------------------------------------------< HttpMethodBase >---



Mime
View raw message