2012/7/30 Felix Meschberger <[email protected]>:
>>
>> To be honest, this looks like the logical solution, however I really
>> feel uneasy with throwing a runtime exception on a put call. While
>> this is allowed, it is very unexpected from a user pov.
>
> The question probably is, whether we expect the operation to generally 
> succeed or not. My impression is, that on put, we expect the operation to 
> generally succeed and on commit to be prepared for the operation to fail.

Good point, if I look at the jcr value map implementation it is very
unlikely that put fails - and the same is true for other
implementations.
Ok, this convinced me :) Let's go the nicer way.

> Ok.
>
> For an FS provider the files and folders could be created in a temporary 
> space and moved into the final location on commit.

Yes, and that should be easy to implement as well.

Regards
Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to