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 2002/02/21 18:35:53 UTC

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

juergen     02/02/21 09:35:53

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        AbstractMultistatusResponseMethod.java
  Log:
  if the client does not pass a destination URI (for move/copy) a "bad request" (400) is returned now.
  
  Revision  Changes    Path
  1.13      +8 -3      jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AbstractMultistatusResponseMethod.java
  
  Index: AbstractMultistatusResponseMethod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AbstractMultistatusResponseMethod.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- AbstractMultistatusResponseMethod.java	3 Jan 2002 10:51:03 -0000	1.12
  +++ AbstractMultistatusResponseMethod.java	21 Feb 2002 17:35:53 -0000	1.13
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AbstractMultistatusResponseMethod.java,v 1.12 2002/01/03 10:51:03 juergen Exp $
  - * $Revision: 1.12 $
  - * $Date: 2002/01/03 10:51:03 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/AbstractMultistatusResponseMethod.java,v 1.13 2002/02/21 17:35:53 juergen Exp $
  + * $Revision: 1.13 $
  + * $Date: 2002/02/21 17:35:53 $
    *
    * ====================================================================
    *
  @@ -146,6 +146,11 @@
           
           destinationUri = req.getHeader("Destination");
   
  +        if (destinationUri == null) {
  +            resp.setStatus(WebdavStatus.SC_BAD_REQUEST);
  +            throw new WebdavException(WebdavStatus.SC_BAD_REQUEST); // that's it
  +        }
  +            
           int protocolIndex = destinationUri.indexOf("://");
           if (protocolIndex >= 0) {
               // if the Destination URL contains the protocol, we can safely
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>