Hello Stefan,

Thank you very much for comiting my changes.
Concerning the put method, your solution is what I have done.
I have now a first version of quotas.
I will finish to comment my code and make other tests.

Regards,

Thomas

Stefan L�tzkendorf wrote:

Hello Thomas,

I added your changes at the cvs head. Thanks. Next time a patch would be nice, which you can submit in bugzilla.

To the other point you wrote earlier regarding events in PUT methods:

- the PutMethod does not delete an existing resource so we cant create putBeforeDelete,
  putAfterDelete events.

- may be you can test whether a resource exists by trying

   public void put(WebdavEvent event) throws VetoException {
      PutMethod method = (PutMethod)event.getSource();

      try {
method.getContent().retrieve(method.getSlideToken(), method.getRequestUri());

         // the resource always exists
         ...
      } catch(ObjectNotFoundException e) {
         // the resource does not exist
         ...
      }
   }

Regards,
Stefan


Thomas Bellembois wrote:

Hi Stefan !

The getCause method comes not from the java.lang.Exception class but from the java.lang.Throwable class (I was too tired ;-))
But it is not present in the JDK 1.3 either.
I have put the getCause and initCause methods in the SlideException class and modified the WebdavUtils class to manage InsufficientStorageException. It's working but I would appreciate very much you to check my work because I am not sure that is is very... clean... I don't know how I can send you my work (mail attachment ?). So I have put it at :
http://perso.univ-rennes1.fr/thomas.bellembois/partage/Slide/

Thank you.
Regards,

Thomas


Stefan L�tzkendorf wrote:

[EMAIL PROTECTED] wrote:

Hi Stefan,

The initCause method comes from the java.lang.Exception class.
There is also a getCause method.



Ok, I see. But it only exists there in JDK 1.4.
The last decision regarding supported JDK was to maintain 1.3.

We should add the required methods to SlideException, I think.

I will provide a patch for the WebdavUtils




Great

class. I will do it next week given that I am currently not at my office
(training). Thank you very much for your help.


Cheers, Stefan








--
+---=(    Thomas Bellembois    )=---+
| CRI - University of Rennes 1 - FR |
| [EMAIL PROTECTED] |
| +33 2 23 23 69 60                 |
+-----------------------------------+


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

Reply via email to