spring-attic / spring-android

Support for Spring's RestTemplate within native Android applications
http://projects.spring.io/spring-android
Apache License 2.0
708 stars 265 forks source link

URL Issue #14

Closed sooraj-e closed 9 years ago

sooraj-e commented 11 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 );
    }
royclarkson commented 10 years ago

Referenced in ANDROID-140.

royclarkson commented 9 years ago

Please see the recommendation in the JIRA, ANDROID-140. Closing this as working as designed.