You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Richard Kao (JIRA)" <de...@myfaces.apache.org> on 2009/05/18 16:23:46 UTC

[jira] Created: (TRINIDAD-1475) IE Browser detection JavaScript error

IE Browser detection JavaScript error
-------------------------------------

                 Key: TRINIDAD-1475
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1475
             Project: MyFaces Trinidad
          Issue Type: Bug
    Affects Versions:  1.0.8-core, 1.0.7-core
         Environment: Windows Internet Explorer 6
            Reporter: Richard Kao


If the navigator.userAgent returns Mozilla/4.0 (compatible; MSIE 6.0) you will get a java script error.  It seems that after installing some Microsoft Patches my userAgent string was set to Mozilla/4.0 (compatible; MSIE 6.0).  I am not sure what patch did it but it will cause a problem related to a null pointer because of the way the detection routines parse the string.  It is expecting a ; after the browser version.  So it is not there you get a null back from the parse.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1475) IE Browser detection JavaScript error

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728009#action_12728009 ] 

Matthias Weßendorf commented on TRINIDAD-1475:
----------------------------------------------

the 1.2.x version of trinidad has some better logic of handling user agent's version #

> IE Browser detection JavaScript error
> -------------------------------------
>
>                 Key: TRINIDAD-1475
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1475
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.0.7-core,  1.0.8-core
>         Environment: Windows Internet Explorer 6
>            Reporter: Richard Kao
>
> If the navigator.userAgent returns Mozilla/4.0 (compatible; MSIE 6.0) you will get a java script error.  It seems that after installing some Microsoft Patches my userAgent string was set to Mozilla/4.0 (compatible; MSIE 6.0).  I am not sure what patch did it but it will cause a problem related to a null pointer because of the way the detection routines parse the string.  It is expecting a ; after the browser version.  So it is not there you get a null back from the parse.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.