[Opensim-dev] HG users' names sometimes don't include the port

Oren Hurvitz orenh at kitely.com
Sun Aug 2 09:04:23 UTC 2015


The full name of an HG user is: FirstName.LastName @GridUri

"GridUri" usually includes both the hostname and the port, e.g.:
hg.example.com:8002. This is what we usually see, including what's shown
above the avatar's head in the viewer.

However, in one place the port is removed: GatekeeperService.LoginAgent():

   Uri uri = new Uri(aCircuit.ServiceURLs["HomeURI"].ToString());
   aCircuit.lastname = "@" + uri.Host; // + ":" + uri.Port;

This is the value that's returned by the script function llDetectedName().

This makes the name inconsistent with other places. As mentioned above, the
name in the viewer includes the port. The function osKey2Name() also
includes the port. This means that checking the avatar name in a script
returns different values depending on which function was used:

  llDetectedName() = First.Last @hg.example.com
  osKey2Name() = First.Last @hg.example.com:8002

I would like to include the port in the name generated in
GatekeeperService. Is there any reason not to do so? This particular code
was commited in 2010, with this comment: "Thanks Marck for the patch to
mantis #4941 (shortening avies' names on HG)".

(Sorry if you're seeing this message twice; I had trouble posting it)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20150802/1cca0165/attachment.html>


More information about the Opensim-dev mailing list