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 Thomas Bellembois <th...@univ-rennes1.fr> on 2005/05/20 10:53:42 UTC

Quotas - other questions

Hi !

We are about to release a first version of WebDAV quotas.
I have two basic questions :
1.
I use listeners and events.
For a copy or a move request and when the resource already exits the 
following events are thrown (in this order) :
move(copy)BeforeCopy
move(copy)BeforeDelete
move(copy)AfterDelete
move(copy)AfterCopy
move(copy)BeforeDelete
move(copy)AfterDelete
With this system, I am not obliged to check if the resource already exists.

But for a put request, the put and put after methods are called (in this 
order) whether the resource already exists or not.
Would it be possible to have something like :
put
putBeforeDelete (before deleting the existing destination resource)
putAfterDelete (after deleting the existing destination resource)
putAfter
.. if the resource already exist

2.
When a quota limitation is reached I throw an exception like :
InsufficientStorageException insufficientStorageException = new 
InsufficientStorageException(destinationUri, connectedUser, QUOTA_EXCEEDED);
VetoException vetoException = new VetoException(QUOTA_EXCEEDED);
vetoException.initCause(insufficientStorageException);
...
But I am not sure that the thrown exception is a 507 error as specified 
in the DAV standard.

Thank you.

Thomas

-- 
+---=(    Thomas Bellembois    )=---+
| CRI - University of Rennes 1 - FR |
| thomas.bellembois@univ-rennes1.fr |
| +33 2 23 23 69 60                 |
+-----------------------------------+	


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org