<div dir="ltr"><div><div><Tap, tap> Is this thing on? OK, trying out the new mailing list...<br><br></div>The GridUser table contains some information about users: their Online status (in the grid, not globally); home region; etc. For HG-enabled grids this table can contain entries for Hypergrid users: when a user HG-teleports into the grid, an entry is created for them. That entry is kept up-to-date to show the user as Online or Offline.<br>
<br></div><div>The problem is that HG users are sometimes identified using a UUID, and sometimes using a UUI (Universal User Identifier). For example:<br></div><div><br>UUID: 00000000-0000-0000-0000-000000000000<br>UUI: 00000000-0000-0000-0000-000000000000;<a href="http://grid.example.com:8002/;First">http://grid.example.com:8002/;First</a> Last<br>
<br></div><div>The GridUser table allows both entries to exist simultaneously. Actually it allows even more than two entries, because multiple UUI's can refer to the same user.<br><br>This seems to be a mistake: a user can only be online or offline. Was there a reason that multiple entries were allowed?<br>
<br></div><div>This duplication has caused problems in the past: e.g., a user's status was updated using one of the entries, but then retrieved from a different entry, which didn't reflect the current status. This problem was partially fixed in a patch to GridUserService.cs (Feb 2014) that attempts to always select the same entry for the user (the one with the longest User ID). But this still doesn't fix the problem completely, as it can still return different entries if requests are made using different UUI's.<br>
<br></div><div>I think that GridUserService should be changed so that it allows only one entry per UUID. It will still store the full UUI if given, but it won't allow multiple UUI's for the same user. Thoughts?<br>
</div><br>Oren<div><div><div><div>
</div></div></div></div></div>