devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Keil (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DMAP-120) Device mismatch for SGP311
Date Fri, 02 Jan 2015 02:44:13 GMT

    [ https://issues.apache.org/jira/browse/DMAP-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262723#comment-14262723
] 

Werner Keil commented on DMAP-120:
----------------------------------

Looking up the same UA in http://devicemap-vm.apache.org/dmap-spring brings something more
strange.
{code}
{
"success":true,
"ua":"Mozilla/5.0 (Linux; Android 4.3; SGP311 Build/10.4.B.0.577) AppleWebKit/537.36 (KHTML,
like Gecko) Chrome/38.0.2125.102 Safari/537.36",
"time_microseconds":533,
"result":{"id":"genericTouchPhone","attributes":{"model":"touch phone","ajax_support_getelementbyid":"false","marketing_name":"-","displayWidth":"320","device_os":"-","id":"genericTouchPhone","xhtml_format_as_attribute":"false","is_crawler":"false","dual_orientation":"false","nokia_series":"0","device_os_version":"-","nokia_edition":"0","vendor":"generic","mobile_browser_version":"-","is_desktop":"false","ajax_support_events":"false","ajax_support_inner_html":"false","image_inlining":"false","mobile_browser":"-","ajax_support_event_listener":"false","ajax_manipulate_css":"false","displayHeight":"480","is_tablet":"false","inputDevices":"touchscreen","ajax_support_javascript":"true","is_wireless_device":"true","ajax_manipulate_dom":"false","xhtml_format_as_css_property":"false"}}
}
{code}

The "found" device_id says "genericTouchPhone", but that makes no sense as the entry for "SGP311"
in DeviceDataSource.xml 
looks like this:
{code}
 <device id="SGP311" parentId="genericSonyEricsson">
{code}
 
I don't know how the classifier comes from "genericSonyEricsson" to "genericAndroid" or "genericTouchPhone"?
The top entry "genericSonyEricsson" looks like this:
{code}
        <device id="genericSonyEricsson" parentId="generic-">
            <property name="vendor" value="SonyEricsson"/>
        </device>
{code}

> Device mismatch for SGP311 
> ---------------------------
>
>                 Key: DMAP-120
>                 URL: https://issues.apache.org/jira/browse/DMAP-120
>             Project: DeviceMap
>          Issue Type: Bug
>          Components: Device data, Java Client
>    Affects Versions: 1.0.1 Data, 1.1.0 Java
>            Reporter: Werner Keil
>            Assignee: Reza Naghibi
>              Labels: bug, detection, useragent
>
> org.junit.ComparisonFailure: classification failed for 'Mozilla/5.0 (Linux; Android 4.3;
SGP311 Build/10.4.B.0.577) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.102 Safari/537.36'
expected:<[genericAndroid]> but was:<[SGP311]>
> 	at org.junit.Assert.assertEquals(Assert.java:115)
> 	at org.apache.devicemap.DeviceMapClientTest.testDeviceMapClient(DeviceMapClientTest.java:74)
> 	at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.junit.runners.Suite.runChild(Suite.java:127)
> 	at org.junit.runners.Suite.runChild(Suite.java:26)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message