Reused usernames and persistentIds
Manuel Haim
haim at hrz.uni-marburg.de
Fri Oct 24 02:39:46 EDT 2014
On 23.10.2014 18:18 Cantor, Scott wrote:
>> I don't know enough about the storedId connector to claim that it
>> actually successfully generates a separate ID if it gets an ID collision
>> on create, but it certainly should.
>
> It does.
Well, I think it does not.
If there is at least one entry in the database for the current tuple, it
just creates a random UUID but without checking if that UUID already
exists. But in case of a collision, the database insertion may raise an
SQLException.
See functions getStoredId and createPersistentId at
StoredIDDataConnector.java:
http://svn.shibboleth.net/view/java-shib-common/trunk/src/main/java/edu/internet2/middleware/shibboleth/common/attribute/resolver/provider/dataConnector/StoredIDDataConnector.java?view=markup
and function storePersistentIdEntry at StoredIDStore.java:
http://svn.shibboleth.net/view/java-shib-common/trunk/src/main/java/edu/internet2/middleware/shibboleth/common/attribute/resolver/provider/dataConnector/StoredIDStore.java?view=markup
-Manuel
More information about the users
mailing list