Hello Thomas,
we have to adapt the getErrorCode method in
org.apache.slide.webdav.util.WebdavUtils.
There are handled VetoExceptions an translated to 406.
Where comes the initCause method from? Is there a getCause method to. Then we
could
switch with regard to the cause in the getErrorCode method.
Can you do that and provide a patch?
The other point of your earlier mail (regarding putBeforeDelete, putAfterDelete, ...) I have not
checked yet. But I'll do.
Best regards,
Stefan
Thomas Bellembois wrote:
Hello,
How can we send a 507 (Insufficient Storage) exception in a listener.
I tried with the following code :
InsufficientStorageException insufficientStorageException = new
InsufficientStorageException(requestUri, connectedUser, QUOTA_EXCEEDED);
VetoException vetoException = new VetoException(QUOTA_EXCEEDED);
vetoException.initCause(insufficientStorageException);
throw vetoException;
...but a 406 error is sent.
Any idea ?
Thank you.
Thomas
--
Stefan L�tzkendorf -- [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]