Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008848opensim[GRID] Asset Servicepublic2021-01-06 05:282021-02-06 19:13
ReporterChris Weymann 
Assigned ToChris Weymann 
PlatformOperating SystemOperating System Version
Product Version 
Target VersionFixed in Version0.9.2.0 dev 
Summary0008848: Typo in AssetData request uri string in AssetServiceConnector
DescriptionThere is a spelling error in AssetServiceConnector which causes problems in interaction with AssetServerGetHandler.

AssetServiceConnector creates the following URL with "/Data" at the end for retrieving an asset: [^]

But AssetServerGetHandler expects a URL with a lowercase "/data" at the end. [^]

If AssetServerGetHandler gets a request with an uppercase "/Data" it returns a "Bad Request" error.
Steps To ReproduceTo reproduce this you only need to retrieve an asset with a web client of your choice. In this case I use curl and retrieve the file size.

A call with the incorrect URL:
curl -o asset.jpg2000 [^] && du -h asset.jpg2000 && rm asset.jpg2000

Returns the following file size:
> 0 asset.jpg2000

A call with the correct URL:
curl -o asset.jpg2000 [^] && du -h asset.jpg2000 && rm asset.jpg2000

Returns the following file size:
> 48K asset.jpg2000
Additional InformationNormally this error is not noticeable because the regions retrieve their assets together with the metadata. But I have a module in use that needs exactly this function. And basically the correct URL should be used even if this will never happen in practice.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineubODE
Script EngineXEngine
Mono VersionNone
Attached Filespatch file icon 0001-Fix-a-typo-in-AssetServiceConnector-what-makes-troub.patch [^] (1,096 bytes) 2021-01-06 05:28 [Show Content]

- Relationships

-  Notes
Chris Weymann (reporter)
2021-01-06 05:29

Add a path to fix this.
UbitUmarov (administrator)
2021-01-06 06:48

oops.. master fixed, thanks
Chris Weymann (reporter)
2021-02-06 19:13

thanks :3

- Issue History
Date Modified Username Field Change
2021-01-06 05:28 Chris Weymann New Issue
2021-01-06 05:28 Chris Weymann File Added: 0001-Fix-a-typo-in-AssetServiceConnector-what-makes-troub.patch
2021-01-06 05:29 Chris Weymann Note Added: 0037466
2021-01-06 05:29 Chris Weymann Status new => patch included
2021-01-06 06:48 UbitUmarov Note Added: 0037467
2021-02-06 19:13 Chris Weymann Note Added: 0037542
2021-02-06 19:13 Chris Weymann Status patch included => resolved
2021-02-06 19:13 Chris Weymann Fixed in Version => dev
2021-02-06 19:13 Chris Weymann Resolution open => fixed
2021-02-06 19:13 Chris Weymann Assigned To => Chris Weymann

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker