juergen     2002/07/23 05:36:57

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        ReportMethod.java
  Log:
  fixed problem in principal search report (eckehard)
  
  Revision  Changes    Path
  1.43      +10 -5     
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java
  
  Index: ReportMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/ReportMethod.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- ReportMethod.java 22 Jul 2002 06:13:58 -0000      1.42
  +++ ReportMethod.java 23 Jul 2002 12:36:57 -0000      1.43
  @@ -500,7 +500,8 @@
                   throw new WebdavException(WebdavStatus.SC_BAD_REQUEST);
               }
           }
  -        if ((propertySearchSet == null)||(requestedProperties == null)) {
  +//      if ((propertySearchSet == null)||(requestedProperties == null)) {
  +        if (propertySearchSet == null) {
               throw new WebdavException(WebdavStatus.SC_BAD_REQUEST);
           }
       }
  @@ -1227,6 +1228,10 @@
                   }
                   else if (E_CASELESS_SUBSTRING.equals(element.getName())) {
                       currentSearchLiteral = C_LITERAL_OPEN + element.getText() + 
C_LITERAL_CLOSE;
  +                }
  +                else if (E_SUBSTRING.equals(element.getName())) {
  +                    resp.setStatus(WebdavStatus.SC_NOT_IMPLEMENTED);
  +                    throw new WebdavException(WebdavStatus.SC_NOT_IMPLEMENTED);
                   }
                   else {
                       throw new WebdavException(WebdavStatus.SC_BAD_REQUEST);
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to