kailIII / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

Encryption doesn't work with TCP #432

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup client and server, so that test-notification works
2. disable UDP on the mobile client (and check that test notification still 
works)
3. Enable encryption and notice how the test-message is not received anymore
4. Enable UDP and notice how the test-message works again.

What is the expected output? What do you see instead?
I would like to see the test-message succeding, even if only tcp is enabled.

What version of the product are you using? On what operating system?
Server Version: 0.5.1-0 on Linux 3.0.0-1-amd64 / debian unstable
Client: 0.2.8

Please provide the log output if possible (from the alogcat app on android,
Show Log menu on the multiplatform client, or Console on native mac app):

D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a1d078}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44d55c18}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44d55c18}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44d55c18}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44d55c18}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44d9c188}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44d9c188}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44ae74d0}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44ae74d0}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44ae74d0}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44ae74d0}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44a18108}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44e7c4a8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44e7c4a8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): acquireWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): releaseWifiLockLocked: WifiLock{NetworkLocationProvider 
type=2 binder=android.os.Binder@44c06df8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_SCREEN_OFF
D/WifiService(   98): acquireWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44ac7fe8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): releaseWifiLockLocked: WifiLock{MAIL_WIFI_LOCK type=1 
binder=android.os.BinderProxy@44ac7fe8}
D/WifiService(   98): enable and start wifi due to updateWifiState
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0e359201c/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0e3d78a89/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0e59d61ef/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 27
D/RemoteNotifier(27374): Battery level change: 5
D/RemoteNotifier(27374): Notifying of battery state change
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/89eb7e83970b01/BATTERY/27/NOT charging, remaining charge: 
27%
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0e8c9b514/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0e9110453/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 26
D/RemoteNotifier(27374): Battery level change: 1
D/RemoteNotifier(27374): Got battery update, but state change was not relevant
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0ea8f542b/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 25
D/RemoteNotifier(27374): Battery level change: 2
D/RemoteNotifier(27374): Got battery update, but state change was not relevant
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_OFF
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 24
D/RemoteNotifier(27374): Battery level change: 3
D/RemoteNotifier(27374): Got battery update, but state change was not relevant
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 23
D/RemoteNotifier(27374): Battery level change: 4
D/RemoteNotifier(27374): Got battery update, but state change was not relevant
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0fb3803fc/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/472f0fce71d13/PING//Test notification
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/WifiService(   98): ACTION_SCREEN_OFF
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 22
D/RemoteNotifier(27374): Battery level change: 5
D/RemoteNotifier(27374): Notifying of battery state change
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/RemoteNotifier(27374): Sending notification: 
v2/65e74f976da67c8c/89eb820d8d43ae/BATTERY/22/NOT charging, remaining charge: 
22%
D/RemoteNotifier(27374): Sending wifi notification to IP 10.0.0.146
D/RemoteNotifier(27374): Sending over UDP
D/RemoteNotifier(27374): Sent over UDP
D/RemoteNotifier(27374): Sending over TCP
D/RemoteNotifier(27374): Sent over TCP
I/RemoteNotifier(27374): Sent notification over WiFi.
D/WifiService(   98): ACTION_BATTERY_CHANGED pluggedType: 0
D/RemoteNotifier(27374): Battery status: NOT charging
D/RemoteNotifier(27374): Got battery level: 21
D/RemoteNotifier(27374): Battery level change: 1
D/RemoteNotifier(27374): Got battery update, but state change was not relevant
D/WifiService(   98): ACTION_SCREEN_ON
D/WifiService(   98): enable and start wifi due to updateWifiState

Please provide any additional information below.

A workaround for now is to use UDP notifications instead of TCP notifications.

Judging from the symptoms, bug 233 might be related: 
http://code.google.com/p/android-notifier/issues/detail?id=233

Original issue reported on code.google.com by johannes...@gmail.com on 8 Sep 2011 at 7:31