Closed sooraj-e closed 9 years ago
Im using spring android with robospice I'm calling a URL with following query. tags=["keywords:default=hello"]
this is the converted URL by robospice or spring android http://XXX/rest/media/search?token=123&tags=%5B%22keywords:default&hello%22%5D
here "=" sign is converted to "&" in "keywords:default=hello" hence the request is failed.
How to fix this? I already submitted an issue at robospice https://github.com/octo-online/robospice/issues/187 they are saying Robospice doesn't perform any url conversion. This is my request class
here tags = String.format("[\"keywords:default=%s\"]", mTag);
@Override public MVMediaSearch loadDataFromNetwork() throws Exception { String search=""; if(!tags.equals(Constants.EMPTY_DATA)) search="&tags="+tags; return getRestTemplate().getForObject( Constants.BASE_URL+"/media/search?token="+token+search, MVMediaSearch.class ); }
Referenced in ANDROID-140.
Please see the recommendation in the JIRA, ANDROID-140. Closing this as working as designed.
Im using spring android with robospice I'm calling a URL with following query. tags=["keywords:default=hello"]
this is the converted URL by robospice or spring android http://XXX/rest/media/search?token=123&tags=%5B%22keywords:default&hello%22%5D
here "=" sign is converted to "&" in "keywords:default=hello" hence the request is failed.
How to fix this? I already submitted an issue at robospice https://github.com/octo-online/robospice/issues/187 they are saying Robospice doesn't perform any url conversion. This is my request class
here tags = String.format("[\"keywords:default=%s\"]", mTag);