Project

General

Profile

Bug #342

Crash when receiving an offline message

Added by Victor N about 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Priority:
High
Assignee:
Category:
-
Target version:
Start date:
02/02/2011
Due date:
% Done:

0%

Estimated time:
Affected version:
0.1.x
Locale:
Close

Description

Hi,

Every morning I wake up, turn on Beem on my mobile, it notify me there is a received message (that has been sent when I was offline, it happens to me almost every night, I have strange contacts :), I open the notification bar, tap on the message, and then Beem crashes.

I am using current version from Market (0.1.5).

I think it should be easy to reproduce.


Files

DelayInformationProvider.class (2.12 KB) DelayInformationProvider.class santhosh b, 02/04/2011 09:37 AM
DelayInformationProvider.java (2.77 KB) DelayInformationProvider.java santhosh b, 02/04/2011 02:01 PM
#1

Updated by santhosh b about 13 years ago

Hi,

I fixed this issue. Made some changes in 'DelayInformationProvider.java' file. Just replace the attached class file in the jar.

Fix is :

The timestamp in offline message is in "yyyy-MM-dd'T'HH:mm:ss" format but in the DelayInformationProvider.java using different date format like "yyyy-MM-dd'T'HH:mm:ss'Z'". So i removed the 'Z' and updated the jar file.

For your reference i am attaching the .class file

#2

Updated by Nikita Kozlov about 13 years ago

Hello,

Could you please provide us the source code (or a diff) of your DelayInformationProvider.java so we could review it ?

#3

Updated by santhosh b about 13 years ago

Hi,

Please find the attached source file.

Thanks,
Santhosh

#4

Updated by Frédéric Barthéléry about 13 years ago

  • Status changed from New to Assigned
  • Assignee set to Nikita Kozlov
  • Target version set to 0.1.6
#5

Updated by Nikita Kozlov almost 13 years ago

  • Status changed from Assigned to Rejected

Hello santhosh,

Sorry for the late reply, I apparently missed your patch.
When looking at http://xmpp.org/extensions/xep-0203.html the 'Z' is correct.

Also, I failed to reproduce your crash. I tried with 2 differents xmpp server and with different combination of offline contacts etc...

I think your crash is more likely to be related to some lost connections behavior (like #258 or #270).

Also available in: Atom PDF