diff options
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs index 7ad6f0b..2a3dacc 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs | |||
@@ -181,8 +181,7 @@ namespace OpenSim.Services.Connectors | |||
181 | 181 | ||
182 | public AssetBase Get(string id) | 182 | public AssetBase Get(string id) |
183 | { | 183 | { |
184 | // string uri = MapServer(id) + "/assets/" + id; | 184 | string uri = Path.Combine(MapServer(id), Path.Combine("assets", id)); |
185 | string uri = MapServer(id) + "assets/" + id; | ||
186 | 185 | ||
187 | AssetBase asset = null; | 186 | AssetBase asset = null; |
188 | if (m_Cache != null) | 187 | if (m_Cache != null) |
@@ -219,8 +218,7 @@ namespace OpenSim.Services.Connectors | |||
219 | return fullAsset.Metadata; | 218 | return fullAsset.Metadata; |
220 | } | 219 | } |
221 | 220 | ||
222 | // string uri = MapServer(id) + "/assets/" + id + "/metadata"; | 221 | string uri = Path.Combine(MapServer(id), Path.Combine("assets", id)); |
223 | string uri = MapServer(id) + "assets/" + id + "/metadata"; | ||
224 | 222 | ||
225 | AssetMetadata asset = SynchronousRestObjectRequester. | 223 | AssetMetadata asset = SynchronousRestObjectRequester. |
226 | MakeRequest<int, AssetMetadata>("GET", uri, 0); | 224 | MakeRequest<int, AssetMetadata>("GET", uri, 0); |
@@ -262,8 +260,7 @@ namespace OpenSim.Services.Connectors | |||
262 | 260 | ||
263 | public bool Get(string id, Object sender, AssetRetrieved handler) | 261 | public bool Get(string id, Object sender, AssetRetrieved handler) |
264 | { | 262 | { |
265 | // string uri = MapServer(id) + "/assets/" + id; | 263 | string uri = Path.Combine(MapServer(id), Path.Combine("assets", id)); |
266 | string uri = MapServer(id) + "assets/" + id; | ||
267 | 264 | ||
268 | AssetBase asset = null; | 265 | AssetBase asset = null; |
269 | if (m_Cache != null) | 266 | if (m_Cache != null) |
@@ -382,9 +379,9 @@ namespace OpenSim.Services.Connectors | |||
382 | return asset.ID; | 379 | return asset.ID; |
383 | } | 380 | } |
384 | 381 | ||
385 | // string uri = MapServer(asset.FullID.ToString()) + "/assets/"; | 382 | string uri = Path.Combine(MapServer(asset.FullID.ToString()), "/assets/"); |
386 | 383 | if (!uri.EndsWith("/")) | |
387 | string uri = MapServer(asset.FullID.ToString()) + "assets/"; | 384 | uri += "/"; |
388 | 385 | ||
389 | string newID = string.Empty; | 386 | string newID = string.Empty; |
390 | try | 387 | try |
@@ -461,8 +458,7 @@ namespace OpenSim.Services.Connectors | |||
461 | } | 458 | } |
462 | asset.Data = data; | 459 | asset.Data = data; |
463 | 460 | ||
464 | // string uri = MapServer(id) + "/assets/" + id; | 461 | string uri = Path.Combine(MapServer(id), Path.Combine("assets", id)); |
465 | string uri = MapServer(id) + "assets/" + id; | ||
466 | 462 | ||
467 | if (SynchronousRestObjectRequester. | 463 | if (SynchronousRestObjectRequester. |
468 | MakeRequest<AssetBase, bool>("POST", uri, asset)) | 464 | MakeRequest<AssetBase, bool>("POST", uri, asset)) |
@@ -477,8 +473,7 @@ namespace OpenSim.Services.Connectors | |||
477 | 473 | ||
478 | public bool Delete(string id) | 474 | public bool Delete(string id) |
479 | { | 475 | { |
480 | // string uri = MapServer(id) + "/assets/" + id; | 476 | string uri = Path.Combine(MapServer(id), Path.Combine("assets", id)); |
481 | string uri = MapServer(id) + "assets/" + id; | ||
482 | 477 | ||
483 | if (SynchronousRestObjectRequester. | 478 | if (SynchronousRestObjectRequester. |
484 | MakeRequest<int, bool>("DELETE", uri, 0)) | 479 | MakeRequest<int, bool>("DELETE", uri, 0)) |