Fixed the "Update Asset" handler: it was looking for the Asset ID in the wrong parameter.
This doesn't actually matter because the "Update Asset" operation isn't implemented in AssetsServer. But still, the handler should do the right thing...0.8.0.3
parent
d1c3f8eef5
commit
fad0fd7f75
|
@ -71,14 +71,16 @@ namespace OpenSim.Server.Handlers.Asset
|
|||
}
|
||||
|
||||
string[] p = SplitParams(path);
|
||||
if (p.Length > 1)
|
||||
if (p.Length > 0)
|
||||
{
|
||||
bool result = m_AssetService.UpdateContent(p[1], asset.Data);
|
||||
string id = p[0];
|
||||
bool result = m_AssetService.UpdateContent(id, asset.Data);
|
||||
|
||||
xs = new XmlSerializer(typeof(bool));
|
||||
return ServerUtils.SerializeResult(xs, result);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
string id = m_AssetService.Store(asset);
|
||||
|
||||
xs = new XmlSerializer(typeof(string));
|
||||
|
@ -86,3 +88,4 @@ namespace OpenSim.Server.Handlers.Asset
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue