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

Sebastien Blanc scm.blanc at gmail.com
Mon Jan 18 11:02:09 EST 2016


Thanks,
I've updated the ticket, we will fix both


On Mon, Jan 18, 2016 at 12:47 PM, gklein <gunther.klein at f24.com> wrote:

> 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.
> _______________________________________________
> Aerogear-users mailing list
> Aerogear-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20160118/015e34a6/attachment.html 


More information about the Aerogear-users mailing list