openphoto/mobile-android — Issue #22: Do url encoding when uploading photo
Author: pboos
Created: 2011-11-15 22:08:12+00:00
State: open
Labels: bug, Release 1.4

I/UploaderService( 5071): Starting upload to OpenPhoto: file:///mnt/sdcard/DCIM/Camera/IMG_20111115_185218.jpg
D/UploaderService( 5071): Connectivity changed to online
I/ActivityManager( 183): Displayed me.openphoto.android.app/.MainActivity: +738ms
```
E/UploaderService( 5071): Could not upload the photo taken
E/UploaderService( 5071): java.lang.IllegalArgumentException: Illegal character in query at index 67: http://current.openphoto.me/photo/upload.json?tags=tokyo&title=Good night Tokyo&description=After some work on OpenPhoto on my way back home.&permission=1
E/UploaderService( 5071): at java.net.URI.create(URI.java:776)
E/UploaderService( 5071): at org.apache.http.client.methods.HttpPost.(HttpPost.java:79)
E/UploaderService( 5071): at me.openphoto.android.app.net.ApiBase.createHttpRequest(ApiBase.java:139)
E/UploaderService( 5071): at me.openphoto.android.app.net.ApiBase.execute(ApiBase.java:99)
E/UploaderService( 5071): at me.openphoto.android.app.net.OpenPhotoApi.uploadPhoto(OpenPhotoApi.java:196)
E/UploaderService( 5071): at me.openphoto.android.app.service.UploaderService.handleIntent(UploaderService.java:104)
E/UploaderService( 5071): at me.openphoto.android.app.service.UploaderService.access$0(UploaderService.java:93)
E/UploaderService( 5071): at me.openphoto.android.app.service.UploaderService$ServiceHandler.handleMessage(UploaderService.java:54)
E/UploaderService( 5071): at android.os.Handler.dispatchMessage(Handler.java:99)
E/UploaderService( 5071): at android.os.Looper.loop(Looper.java:130)
E/UploaderService( 5071): at android.os.HandlerThread.run(HandlerThread.java:60)
```