pnever      2003/09/08 00:35:42

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        ReportMethod.java
  Log:
  Fixed bug. (Eckehard)
  
  Revision  Changes    Path
  1.56      +12 -7     
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.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- ReportMethod.java 7 Sep 2003 15:52:52 -0000       1.55
  +++ ReportMethod.java 8 Sep 2003 07:35:42 -0000       1.56
  @@ -988,9 +988,14 @@
                   }
               }
           } catch (AccessDeniedException e) {
  -            if (revisionDescriptor == null) {
  -                revisionDescriptor = new NodeRevisionDescriptor(0);
  -            }
  +            /*
  +             if (revisionDescriptor == null) {
  +             revisionDescriptor = new NodeRevisionDescriptor(0);
  +             }
  +             */
  +            int statusCode = WebdavStatus.SC_FORBIDDEN;
  +            sendError( statusCode, e );
  +            throw new WebdavException( statusCode );
           } catch (ObjectNotFoundException e) {
               int statusCode = WebdavStatus.SC_NOT_FOUND;
               sendError( statusCode, e );
  
  
  

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

Reply via email to