[Aerogear-users] Aerogear UPS 1.1.0: Several Severe TTL Bugs for APNS

gklein gunther.klein at f24.com
Mon Jan 18 06:47:28 EST 2016


Hi Sebastian!

Thanks for your answer. 
Please note also the other bug when sending -1 as ttl
(https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/push/sender/src/main/java/org/jboss/aerogear/unifiedpush/message/sender/APNsPushNotificationSender.java#L201).
I think its discussable if this represents a bug in the apns java lib or on
aerogear side. Fact is however that it is severe and prevents messages from
beeing persistet on apns at all. Aerogear code could workaround it very
easily like that:

--- instead of ----
 return new Date(System.currentTimeMillis() +
EnhancedApnsNotification.MAXIMUM_EXPIRY * 1000L);
---- should change to ---
return new Date(EnhancedApnsNotification.MAXIMUM_EXPIRY * 1000L);
---
Anything bigger than 'EnhancedApnsNotification.MAXIMUM_EXPIRY * 1000L' will
result in negative values sent to apns!

Regards, Gunther Klein




--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-UPS-1-1-0-Several-Severe-TTL-Bugs-for-APNS-tp435p438.html
Sent from the aerogear-users mailing list archive at Nabble.com.


More information about the Aerogear-users mailing list