[Authentication] Problem with race on create collection

Michael Leupold lemma at confuego.org
Tue Sep 21 07:30:17 PDT 2010


Am Dienstag, 21. September 2010, 03:03:34 schrieb Stef Walter:
> On 2010-09-18 10:57, Michael Leupold wrote:
> > How about merging the two, making it possible to add an Alias argument
> > to CreateCollection? During CreateCollection it would work the same as
> > the Name property you described, when done with creation it creates a
> > new alias and sets it to point to the new collection. Additional
> > benefits:
> > - No need for a new property, no need to store it
> > - No need to decide what to do if two files containing collections
> > with the same Name property are found
> > 
> > I wouldn't necessarily mix Alias into the properties argument but
> > create an extra string argument which would be left empty if no alias
> > should be created.
> 
> Interesting idea.
> 
> So the daemon would refuse to create another collection when
> CreateCollection is called with an alias argument that already exists?
> Or would it just return the previous collection? Or did you have
> something else in mind?

I'd go with returning the previously created collection because I think that's 
what the client sending the second CreateCollection request wants in most if 
not all of the cases. Apart from the it's harder to send errors when using a 
prompt object.

Regards,
Michael


More information about the Authentication mailing list