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 ju...@apache.org on 2001/07/18 13:43:53 UTC

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

juergen     01/07/18 04:43:53

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        PropPatchMethod.java
  Log:
  do a store instead of a create. this causes the displayname to be settable by a proppatch command
  
  Revision  Changes    Path
  1.12      +10 -6     jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java
  
  Index: PropPatchMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- PropPatchMethod.java	2001/03/23 05:08:31	1.11
  +++ PropPatchMethod.java	2001/07/18 11:43:53	1.12
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v 1.11 2001/03/23 05:08:31 remm Exp $
  - * $Revision: 1.11 $
  - * $Date: 2001/03/23 05:08:31 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/PropPatchMethod.java,v 1.12 2001/07/18 11:43:53 juergen Exp $
  + * $Revision: 1.12 $
  + * $Date: 2001/07/18 11:43:53 $
    *
    * ====================================================================
    *
  @@ -296,12 +296,16 @@
                   
               }
               
  -            // TEMP !!!! We should do a store instead !!
  -            content.create(slideToken, resourcePath, revisionDescriptor, null);
  +            content.store(slideToken, resourcePath, revisionDescriptor, null);
   
               resp.setStatus(WebdavStatus.SC_MULTI_STATUS);
                 
  -        } catch(RevisionAlreadyExistException e) {
  +        } catch(RevisionDescriptorNotFoundException e) {
  +            // 500 - Internal server error
  +            System.out.println(e.getMessage());
  +            resp.setStatus(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
  +            throw new WebdavException(WebdavStatus.SC_INTERNAL_SERVER_ERROR);
  +        } catch(RevisionNotFoundException e) {
               // 500 - Internal server error
               System.out.println(e.getMessage());
               resp.setStatus(WebdavStatus.SC_INTERNAL_SERVER_ERROR);