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 re...@apache.org on 2001/07/22 09:45:36 UTC

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

remm        01/07/22 00:45:36

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        UnlockMethod.java
  Log:
  - Ignore revision descriptor not found (esp since the unlock already succeeded
    (or failed), since it's only a check for a lock-null resource.
  
  Revision  Changes    Path
  1.11      +4 -11     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.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- UnlockMethod.java	2001/07/20 13:00:30	1.10
  +++ UnlockMethod.java	2001/07/22 07:45:36	1.11
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/UnlockMethod.java,v 1.10 2001/07/20 13:00:30 juergen Exp $
  - * $Revision: 1.10 $
  - * $Date: 2001/07/20 13:00:30 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/UnlockMethod.java,v 1.11 2001/07/22 07:45:36 remm Exp $
  + * $Revision: 1.11 $
  + * $Date: 2001/07/22 07:45:36 $
    *
    * ====================================================================
    *
  @@ -181,14 +181,7 @@
                   resp.setStatus(WebdavStatus.SC_NO_CONTENT);
                   
               } catch (RevisionDescriptorNotFoundException e) {
  -                // 404 - Not found
  -                System.out.println(e.getMessage());
  -                resp.setStatus(WebdavStatus.SC_NOT_FOUND);
  -                //
  -                // make sure the transaction is aborted
  -                // throw any WebDAV exception to indicate the transaction wants to be aborted
  -                //
  -                throw new WebdavException(WebdavStatus.SC_ACCEPTED, false);
  +                // Ignore
               } catch (ObjectNotFoundException e) {
                   // 404 - Not found
                   resp.setStatus(WebdavStatus.SC_NOT_FOUND);