mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Framework/Servers/HttpServer/PollServiceRequestManager.cs OpenSim/Region/Framework/Scenes/Scene.cs
This commit is contained in:
@@ -326,15 +326,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
|
||||
"ParcelVoiceInfoRequest",
|
||||
agentID.ToString()));
|
||||
|
||||
caps.RegisterHandler(
|
||||
"ChatSessionRequest",
|
||||
new RestStreamHandler(
|
||||
"POST",
|
||||
capsBase + m_chatSessionRequestPath,
|
||||
(request, path, param, httpRequest, httpResponse)
|
||||
=> ChatSessionRequest(scene, request, path, param, agentID, caps),
|
||||
"ChatSessionRequest",
|
||||
agentID.ToString()));
|
||||
//caps.RegisterHandler(
|
||||
// "ChatSessionRequest",
|
||||
// new RestStreamHandler(
|
||||
// "POST",
|
||||
// capsBase + m_chatSessionRequestPath,
|
||||
// (request, path, param, httpRequest, httpResponse)
|
||||
// => ChatSessionRequest(scene, request, path, param, agentID, caps),
|
||||
// "ChatSessionRequest",
|
||||
// agentID.ToString()));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -433,15 +433,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
|
||||
"ParcelVoiceInfoRequest",
|
||||
agentID.ToString()));
|
||||
|
||||
caps.RegisterHandler(
|
||||
"ChatSessionRequest",
|
||||
new RestStreamHandler(
|
||||
"POST",
|
||||
capsBase + m_chatSessionRequestPath,
|
||||
(request, path, param, httpRequest, httpResponse)
|
||||
=> ChatSessionRequest(scene, request, path, param, agentID, caps),
|
||||
"ChatSessionRequest",
|
||||
agentID.ToString()));
|
||||
//caps.RegisterHandler(
|
||||
// "ChatSessionRequest",
|
||||
// new RestStreamHandler(
|
||||
// "POST",
|
||||
// capsBase + m_chatSessionRequestPath,
|
||||
// (request, path, param, httpRequest, httpResponse)
|
||||
// => ChatSessionRequest(scene, request, path, param, agentID, caps),
|
||||
// "ChatSessionRequest",
|
||||
// agentID.ToString()));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -250,7 +250,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
|
||||
client.OnUUIDGroupNameRequest += HandleUUIDGroupNameRequest;
|
||||
client.OnAgentDataUpdateRequest += OnAgentDataUpdateRequest;
|
||||
client.OnDirFindQuery += OnDirFindQuery;
|
||||
client.OnRequestAvatarProperties += OnRequestAvatarProperties;
|
||||
|
||||
// Used for Notices and Group Invites/Accept/Reject
|
||||
@@ -303,21 +302,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
}
|
||||
*/
|
||||
|
||||
void OnDirFindQuery(IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, int queryStart)
|
||||
{
|
||||
if (((DirFindFlags)queryFlags & DirFindFlags.Groups) == DirFindFlags.Groups)
|
||||
{
|
||||
if (m_debugEnabled)
|
||||
m_log.DebugFormat(
|
||||
"[GROUPS]: {0} called with queryText({1}) queryFlags({2}) queryStart({3})",
|
||||
System.Reflection.MethodBase.GetCurrentMethod().Name, queryText, (DirFindFlags)queryFlags, queryStart);
|
||||
|
||||
// TODO: This currently ignores pretty much all the query flags including Mature and sort order
|
||||
remoteClient.SendDirGroupsReply(queryID, m_groupData.FindGroups(GetRequestingAgentID(remoteClient), queryText).ToArray());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void OnAgentDataUpdateRequest(IClientAPI remoteClient, UUID dataForAgentID, UUID sessionID)
|
||||
{
|
||||
if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
||||
@@ -1178,6 +1162,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||
}
|
||||
}
|
||||
|
||||
public List<DirGroupsReplyData> FindGroups(IClientAPI remoteClient, string query)
|
||||
{
|
||||
return m_groupData.FindGroups(GetRequestingAgentID(remoteClient), query);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Client/Update Tools
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||
public void TestCreateWithAttachments()
|
||||
{
|
||||
TestHelpers.InMethod();
|
||||
// log4net.Config.XmlConfigurator.Configure();
|
||||
// TestHelpers.EnableLogging();
|
||||
|
||||
UUID userId = TestHelpers.ParseTail(0x1);
|
||||
UserAccountHelpers.CreateUserWithInventory(m_scene, userId);
|
||||
|
||||
Reference in New Issue
Block a user