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
This can be reproduced with the auctionMonitor demo page:
http://bridgeit.github.io/edge/auctionMonitor.html
open two browsers with the above page and log in as auctioneer/ices0ft22 auctioneer1/ices0ft22.
In the JavaScript console invoke:
bridgeit.push(auctionName)
which will not result in a push to the other browser.
bridgeit.push(auctionName)
The following does succeed, however:
bridgeit.push(auctionName,
{subject:"why do you need this"})