mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Merge branch 'master-core' into mantis5110
This commit is contained in:
@@ -53,12 +53,15 @@ namespace OpenSim.Server.Handlers.Asset
|
||||
String.Empty);
|
||||
|
||||
if (assetService == String.Empty)
|
||||
throw new Exception("No AssetService in config file");
|
||||
throw new Exception("No LocalServiceModule in config file");
|
||||
|
||||
Object[] args = new Object[] { config };
|
||||
m_AssetService =
|
||||
ServerUtils.LoadPlugin<IAssetService>(assetService, args);
|
||||
|
||||
if (m_AssetService == null)
|
||||
throw new Exception(String.Format("Failed to load AssetService from {0}; config is {1}", assetService, m_ConfigName));
|
||||
|
||||
bool allowDelete = serverConfig.GetBoolean("AllowRemoteDelete", false);
|
||||
|
||||
server.AddStreamHandler(new AssetServerGetHandler(m_AssetService));
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace OpenSim.Server.Handlers.Asset
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
m_log.Debug("[XINVENTORY HANDLER]: Exception {0}", e);
|
||||
m_log.DebugFormat("[XINVENTORY HANDLER]: Exception {0}", e);
|
||||
}
|
||||
|
||||
return FailureResult();
|
||||
@@ -604,6 +604,10 @@ namespace OpenSim.Server.Handlers.Asset
|
||||
ret["CreatorId"] = item.CreatorId.ToString();
|
||||
else
|
||||
ret["CreatorId"] = String.Empty;
|
||||
if (item.CreatorData != null)
|
||||
ret["CreatorData"] = item.CreatorData;
|
||||
else
|
||||
ret["CreatorData"] = String.Empty;
|
||||
ret["CurrentPermissions"] = item.CurrentPermissions.ToString();
|
||||
ret["Description"] = item.Description.ToString();
|
||||
ret["EveryOnePermissions"] = item.EveryOnePermissions.ToString();
|
||||
|
||||
Reference in New Issue
Block a user