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 oz...@apache.org on 2004/10/11 12:19:22 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/method UnlockMethod.java

ozeigermann    2004/10/11 03:19:21

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        UnlockMethod.java
  Log:
  Applied trimming to the lock id as Netdrive sends it with trailing spaces.
  This fixes unlocking with Netdrive
  
  Revision  Changes    Path
  1.41      +4 -4      jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/UnlockMethod.java
  
  Index: UnlockMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/UnlockMethod.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- UnlockMethod.java	12 Sep 2004 17:47:50 -0000	1.40
  +++ UnlockMethod.java	11 Oct 2004 10:19:21 -0000	1.41
  @@ -125,7 +125,7 @@
   			resourcePath = "/";
   		}
   
  -		lockId = requestHeaders.getLockToken();
  +		lockId = requestHeaders.getLockToken().trim(); // XXX trim is needed for Netdrive which sends trailing spaces
   		if (lockId == null) {
   			sendError(WebdavStatus.SC_PRECONDITION_FAILED,
   					LOCK_TOKEN_HEADER_MISSING);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org