Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.BETA
-
Fix Version/s: 4.0
-
Component/s: Push Server
-
Labels:None
-
Environment:ICEpush as a service
Description
An attempt to send a push where the options do not contain a subject parameter appear to fail:
This works:
curl 'http://dev.bridgeit.io/push/notify.icepush' -H 'Origin: http://bridgeit.github.io' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://bridgeit.github.io/edge/auctionMonitor.html' -H 'Connection: keep-alive' --data 'ice.push.browser=5yhvicrc4w&ice.push.apikey=undefined&ice.push.access_token=3315bfb9-0ea6-46fc-b705-6dc2cef8a8d6&ice.push.realm=edge&group=jofilcer&option=subject%3DOutbid%20by%20pushadmin%3A%2010' --compressed
but this does not:
curl 'http://dev.bridgeit.io/push/notify.icepush' -H 'Origin: http://bridgeit.mobi' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://bridgeit.mobi/demo' -H 'Connection: keep-alive' --data 'ice.push.browser=5yhvicrc4w&ice.push.apikey=undefined&ice.push.access_token=3315bfb9-0ea6-46fc-b705-6dc2cef8a8d6&ice.push.realm=edge&group=jofilcer' --compressed
This works:
curl 'http://dev.bridgeit.io/push/notify.icepush' -H 'Origin: http://bridgeit.github.io' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://bridgeit.github.io/edge/auctionMonitor.html' -H 'Connection: keep-alive' --data 'ice.push.browser=5yhvicrc4w&ice.push.apikey=undefined&ice.push.access_token=3315bfb9-0ea6-46fc-b705-6dc2cef8a8d6&ice.push.realm=edge&group=jofilcer&option=subject%3DOutbid%20by%20pushadmin%3A%2010' --compressed
but this does not:
curl 'http://dev.bridgeit.io/push/notify.icepush' -H 'Origin: http://bridgeit.mobi' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://bridgeit.mobi/demo' -H 'Connection: keep-alive' --data 'ice.push.browser=5yhvicrc4w&ice.push.apikey=undefined&ice.push.access_token=3315bfb9-0ea6-46fc-b705-6dc2cef8a8d6&ice.push.realm=edge&group=jofilcer' --compressed
There were a couple of things involved here:
Finally, when as the result of fixing the second issue I also made sure that a ConfirmationTimeout is only started if the PushConfiguration contains the "subject" attribute.
Marking this one as FIXED.