MantisBT - opensim
View Issue Details
0008626opensim[GRID] Robust Serverpublic2019-11-12 14:272019-11-18 04:17
terryf 
 
normalminoralways
newopen 
0.9.1.1 
 
Grid (1 Region per Sim)
BulletSim
XEngine
.NET / Windows64
None
Any
0008626: When specifying region to login, user will sometimes land in a region with similar name.
This bug exists in past code as well, but the patch I'm submitting is for recent trunk (yeti).
Prior to logging into the grid, if a user specifies a region such as "Welcome", they may land in a region with a similar name such as "New Welcome".
Create multiple regions with similar names such as Welcome, My Welcome, Old Welcome. Open your favorite viewer, specify the region to login to as "Welcome" and then login. You may or may not land at your intended destination and may very well end up in Old Welcome.
I found that in OpenSimServices.LLLoginService in the LLLoginService.cs file the code tries to resolve the specified name by searching for a region "Like" the one specified and then returns the first element in the search, which may or may not be the correct region.

The changes I have made which are included in this patch will search first for the specific region name provided by the user, if found, it will return that region and the user will land there, if that region is not found, the code will continue as previously coded.

Note:
There are some changes to the OpenSim.Data.PGSQL project which I believe are fine, but I'm not a postgres user and my changes were done in that file by looking at other code in that files as an example. If you are a postgre user and have issues with this patch, check there first to be sure I didn't make an error.
No tags attached.
zip PatchToCorrectSpecifiedLoginRegion.zip (3,749) 2019-11-12 14:27
http://opensimulator.org/mantis/file_download.php?file_id=4910&type=bug
Issue History
2019-11-12 14:27terryfNew Issue
2019-11-12 14:27terryfFile Added: PatchToCorrectSpecifiedLoginRegion.zip
2019-11-12 14:37terryfAdditional Information Updatedbug_revision_view_page.php?rev_id=8566#r8566
2019-11-12 14:38UbitUmarovProduct Version0.9.1.0 => 0.9.1.1
2019-11-13 22:38UbitUmarovNote Added: 0035860
2019-11-18 04:17tampaNote Added: 0035884

Notes
(0035860)
UbitUmarov   
2019-11-13 22:38   
applied patchs, then changed a few things..
(0035884)
tampa   
2019-11-18 04:17   
Could someone test this, verify it works on both db systems?