Closed syymza closed 11 years ago
We talked a bit on IRC already. To me it seems that AssetAPI::RequestAsset()
does not modify the ref. I suspect the culprit is HttpAssetProvider::RequestAsset
that runs
QString assetRefWithoutSubAssetName;
AssetAPI::AssetRefType refType = AssetAPI::ParseAssetRef(assetRef, 0, 0, 0, 0, 0, 0, 0, 0, 0, &assetRefWithoutSubAssetName);
assetRef = assetRefWithoutSubAssetName;
This ref does not have a subasset but it might inject the trailing slash somewhere in there. To start debugging this i suggest putting prints there for assetRef
before and after that parse call. Then fixing ParseAssetRef
if needed, although there you need to be pretty careful touching anything :) But it would be nice that query prams could be used via AssetAPI correctly. So we need to fix this...
Fixed in https://github.com/Adminotech/tundra/commit/592e6704f30941920b7f192438226a26cf6b8a50 forgot to make the issue ref in the commit message :P
I'll actually close this as the ref is missing, so when tundra2 pulls it in this wont be automatically closed. Will be in next Rocket release and sent to rex/tundra2 in the upcoming weeks.
When using asset.RequestAsset() for an external resource with an URL containing a get paramether, a trailing slash is added to the url.
Example:
creates a GET request to http://myservice.com/?active/