diff --git a/tools/ci/verify_statistics_fallback.py b/tools/ci/verify_statistics_fallback.py index 4d92cc9e..a4a8249a 100644 --- a/tools/ci/verify_statistics_fallback.py +++ b/tools/ci/verify_statistics_fallback.py @@ -38,15 +38,18 @@ assert 'NexNodeRegistry nodes = null' in stats assert 'nodeRegistry);' in routes assert "m_UserAccounts == null || m_GridUsers == null" not in stats -# Full OpenSim HG UUIs must be looked up exactly. Prefixing all lookups -# with the bare 36-character UUID merges different HG homes and can erase -# the GridUser origin rows expected by statistics:read. +# Fully qualified HG UUIs must retain their HomeURI and display identity; +# only the nonsemantic terminal HomeURI slash is normalized before an exact +# lookup. Prefixing with the bare UUID merges different HG homes and can +# erase provenance rows published by statistics:read. griduser = (root / "OpenSim/Services/UserAccountService/GridUserService.cs").read_text(encoding="utf-8") for marker in ( "private static string GridUserCacheKey(string userID)", "userID.Length > 36 && userID[36] == ';'", - "GridUserData exact = m_Database.Get(userID);", - "CacheGridUser(userID, exact);", + "private static string CanonicalHGUserID(string userID)", + "return CanonicalHGUserID(userID);", + "GridUserData exact = m_Database.Get(cacheKey);", + "CacheGridUser(cacheKey, exact);", "GridUserData local = m_Database.Get(bareId);", "CacheGridUser(userID, d);", ):