juergen     01/09/06 01:51:59

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        PutMethod.java
  Log:
  if 2 users are creating a resource at the same time the object/revision may be 
already created by the first user. A response code of 507 is better than a 404.
  
  Revision  Changes    Path
  1.18      +5 -5      
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PutMethod.java
  
  Index: PutMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PutMethod.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- PutMethod.java    2001/08/31 03:21:45     1.17
  +++ PutMethod.java    2001/09/06 08:51:59     1.18
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PutMethod.java,v
 1.17 2001/08/31 03:21:45 remm Exp $
  - * $Revision: 1.17 $
  - * $Date: 2001/08/31 03:21:45 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PutMethod.java,v
 1.18 2001/09/06 08:51:59 juergen Exp $
  + * $Revision: 1.18 $
  + * $Date: 2001/09/06 08:51:59 $
    *
    * ====================================================================
    *
  @@ -395,9 +395,9 @@
           try {
               throw ex;
           } catch (RevisionAlreadyExistException e) {
  -            return WebdavStatus.SC_NOT_FOUND;
  +            return WebdavStatus.SC_CONFLICT;
           } catch (ObjectAlreadyExistsException e) {
  -            return WebdavStatus.SC_NOT_FOUND;
  +            return WebdavStatus.SC_CONFLICT;
           } catch (ObjectNotFoundException e) {
               return WebdavStatus.SC_CONFLICT;
           } catch (LinkedObjectNotFoundException e) {
  
  
  

Reply via email to