This little sucker had evaded my attention forever. As a consequence some assets associated with foreign users were being missed.
parent
afb938e579
commit
667a272cce
|
@ -8949,7 +8949,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
if (aCircuit != null && aCircuit.ServiceURLs != null && aCircuit.ServiceURLs.ContainsKey("AssetServerURI"))
|
if (aCircuit != null && aCircuit.ServiceURLs != null && aCircuit.ServiceURLs.ContainsKey("AssetServerURI"))
|
||||||
{
|
{
|
||||||
string assetServer = aCircuit.ServiceURLs["AssetServerURI"].ToString();
|
string assetServer = aCircuit.ServiceURLs["AssetServerURI"].ToString();
|
||||||
return ((Scene)Scene).AssetService.Get(assetServer + "/" + id);
|
if (!string.IsNullOrEmpty(assetServer))
|
||||||
|
return ((Scene)Scene).AssetService.Get(assetServer + "/" + id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -12658,16 +12659,33 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
|
|
||||||
if (asset == null)
|
if (asset == null)
|
||||||
{
|
{
|
||||||
req.AssetInf = null;
|
// Try the user's asset server
|
||||||
req.AssetRequestSource = source;
|
IInventoryAccessModule inventoryAccessModule = Scene.RequestModuleInterface<IInventoryAccessModule>();
|
||||||
req.IsTextureRequest = false;
|
|
||||||
req.NumPackets = 0;
|
string assetServerURL = string.Empty;
|
||||||
req.Params = transferRequest.TransferInfo.Params;
|
if (inventoryAccessModule.IsForeignUser(AgentId, out assetServerURL) && !string.IsNullOrEmpty(assetServerURL))
|
||||||
req.RequestAssetID = requestID;
|
{
|
||||||
req.TransferRequestID = transferRequest.TransferInfo.TransferID;
|
if (!assetServerURL.EndsWith("/") && !assetServerURL.EndsWith("="))
|
||||||
|
assetServerURL = assetServerURL + "/";
|
||||||
|
|
||||||
|
//m_log.DebugFormat("[LLCLIENTVIEW]: asset {0} not found in local storage. Trying user's storage.", assetServerURL + id);
|
||||||
|
asset = m_scene.AssetService.Get(assetServerURL + id);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (asset == null)
|
||||||
|
{
|
||||||
|
req.AssetInf = null;
|
||||||
|
req.AssetRequestSource = source;
|
||||||
|
req.IsTextureRequest = false;
|
||||||
|
req.NumPackets = 0;
|
||||||
|
req.Params = transferRequest.TransferInfo.Params;
|
||||||
|
req.RequestAssetID = requestID;
|
||||||
|
req.TransferRequestID = transferRequest.TransferInfo.TransferID;
|
||||||
|
|
||||||
|
SendAssetNotFound(req);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SendAssetNotFound(req);
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transferRequest.TransferInfo.SourceType == (int)SourceType.Asset)
|
if (transferRequest.TransferInfo.SourceType == (int)SourceType.Asset)
|
||||||
|
|
Loading…
Reference in New Issue