biddyweb / android-rcs-ims-stack

Automatically exported from code.google.com/p/android-rcs-ims-stack
2 stars 1 forks source link

FTHTTP don't work in http #212

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Configure FTHTTP for http 
Try to send a FT HTTP in GC

There is a ClassCastException on the 2nd POST and an ErrorCode 124 on GUI.

Maybe it should show a message, that http is not allowed for FTHTTP?

01-29 18:43:11.078: V/[RCS][HttpUploadManager](3533): Upload file 
/storage/sdcard0/joyn/photos/logo_joyn1_15.jpg
01-29 18:43:11.083: V/[RCS][RichMessaging](3533): Recycler : minDate = 
1390829999164 maxDate 1391017363366
01-29 18:43:11.088: I/System.out(3533): >>> Send HTTP request:
01-29 18:43:11.088: I/System.out(3533): POST 
http://172.20.65.153/rcse-hcs/upload
01-29 18:43:11.093: V/[RCS][RichMessaging](3533): Recycler : number of messages 
for this contact = 108
01-29 18:43:11.093: V/[RCS][RichMessaging](3533): Recycler : Enough place for 
another message, do nothing return
01-29 18:43:11.173: V/[RCS][MessagingApiService](3533): Add a file transfer 
session in the list (size=0)
01-29 18:43:11.178: I/[RCS][FileTransferSession](3533): Add an event listener
01-29 18:43:11.203: W/ResourceType(4067): Failure getting entry for 0x010802c0 
(t=7 e=704) in package 0 (error -75)
01-29 18:43:11.208: D/WindowManager(2116): PhoneWindowManager: focusChangedLw
01-29 18:43:11.218: I/SurfaceFlinger(1836): id=23(8) createSurf 0x40d83dfc 
(1x1),1 flag=0, TendFileInS
01-29 18:43:11.218: D/KeyguardViewMediator(2116): setHidden false
01-29 18:43:11.248: D/KeyguardViewMediator(2116): setHidden false
01-29 18:43:11.263: D/KeyguardViewMediator(2116): setHidden false
01-29 18:43:11.333: I/System.out(3533): <<< Receive HTTP response:
01-29 18:43:11.333: I/System.out(3533): HTTP/1.1 401 Unauthorized
01-29 18:43:11.333: I/System.out(3533): Date Wed, 29 Jan 2014 17:43:12 GMT
01-29 18:43:11.333: I/System.out(3533): Server Apache
01-29 18:43:11.333: I/System.out(3533): WWW-Authenticate Digest 
realm="joyn@orange.com",domain="/upload",nonce="3a462ff5214945f7e470764c19a522e9
",algorithm="md5",stale="false",opaque="aadc8c91b27ab78e5c4a2c95bffd2534"
01-29 18:43:11.333: I/System.out(3533): Content-Length 990
01-29 18:43:11.333: I/System.out(3533): Content-Type text/html;charset=utf-8
01-29 18:43:11.333: I/System.out(3533): Keep-Alive timeout=360
01-29 18:43:11.333: I/System.out(3533): Connection Keep-Alive
01-29 18:43:11.333: V/[RCS][HttpUploadManager](3533): First POST response 401
01-29 18:43:11.333: I/[RCS][FileTransferSession](3533): Session started
01-29 18:43:11.333: E/[RCS][HttpUploadManager](3533): Upload file has failed
01-29 18:43:11.333: W/System.err(3533): java.lang.ClassCastException: 
libcore.net.http.HttpURLConnectionImpl cannot be cast to 
javax.net.ssl.HttpsURLConnection
01-29 18:43:11.333: W/System.err(3533):     at 
com.orangelabs.rcs.core.ims.service.im.filetransfer.http.HttpUploadManager.sendM
ultipartPost(HttpUploadManager.java:255)
01-29 18:43:11.333: W/System.err(3533):     at 
com.orangelabs.rcs.core.ims.service.im.filetransfer.http.HttpUploadManager.uploa
dFile(HttpUploadManager.java:203)
01-29 18:43:11.333: W/System.err(3533):     at 
com.orangelabs.rcs.core.ims.service.im.filetransfer.http.OriginatingHttpGroupFil
eSharingSession.run(OriginatingHttpGroupFileSharingSession.java:91)

Original issue reported on code.google.com by rcs.capg...@gmail.com on 30 Jan 2014 at 9:36

GoogleCodeExporter commented 9 years ago
HTTP is not authorized for FToHTTP.
No message are shown, because a normal user can't modify the provisioning 
address server.

Original comment by benoit.j...@gmail.com on 30 Jan 2014 at 1:09