Incorrect detection for BlackBerry Device
Posted: Tue Jul 05, 2011 2:57 am
Hello,
The user agent for my device is BlackBerry8300/4.2.2Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/107UP.Link/6.2.3.15.0. When tested on my local development server with MySQL v5.1.49-3 this correctly gives the deviceID blackberry8300_ver1_vid102.
However when I run the same test on my production server with MySQL v5.1.50 the device returned is blackberry8300_ver1. This is incorrect and the capabilities returned for this particular device are all generic.
I think I managed to track down the problem to the stored procedure TeraWurfl_RIS which returns the first found device. The above user agent actually matches both blackberry8300_ver1 and blackberry8300_ver1_vid102 devices and since no specific sort order is given in the query different servers will return the results sorted differently. That is why my local server is returning blackberry8300_ver1_vid102 while production server is returning blackberry8300_ver1.
This is not happening for all devices but BlackBerrys are mostly an issue.
The user agent for my device is BlackBerry8300/4.2.2Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/107UP.Link/6.2.3.15.0. When tested on my local development server with MySQL v5.1.49-3 this correctly gives the deviceID blackberry8300_ver1_vid102.
However when I run the same test on my production server with MySQL v5.1.50 the device returned is blackberry8300_ver1. This is incorrect and the capabilities returned for this particular device are all generic.
I think I managed to track down the problem to the stored procedure TeraWurfl_RIS which returns the first found device. The above user agent actually matches both blackberry8300_ver1 and blackberry8300_ver1_vid102 devices and since no specific sort order is given in the query different servers will return the results sorted differently. That is why my local server is returning blackberry8300_ver1_vid102 while production server is returning blackberry8300_ver1.
This is not happening for all devices but BlackBerrys are mostly an issue.