Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-41173

IE 8: javascript displays in currency converter URL

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.0 CE RC4, 7.0.0 M3
    • Fix Version/s: 6.2.0 CE RC5, 7.0.0 M3
    • Labels:
    • Environment:
      Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: 17d30d50f42f90eef33e304bd3a839b3d319b646.
      Tomcat 7.0 + MySQL 5. Portal master GIT ID: 30c5feb4953b02565c69d000b4db1ad09652b13b.
    • Story Points:
      6
    • Fix Priority:
      3

      Description

      1. Add Currency Converter to home page.
      2. Go to the following URL:
        http://localhost:8080/web/guest/home?_16_chartId=%22/%3E%3Cscript%20type=%22text/javascript%22%3Ealert(123);%3C/script%3E&p%22/%3E%3Cscript%20type=%22text/javascript%22%3Ealert(123);%3C/script%3E_p_id=16&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_id=column-1&_16_struts_action=%2Fcurrency_converter%2Fview

      Expected result:
      Nav-bar displays and logo and title should be tidy.

      Actual result:

      1. After hit the url, the navigation bar disappear.
      2. Liferay logo is not stand in one line with the title "Liferay" as other browser.
      3. Somethimes in IE 8, it will display java script on the page.
        var Liferay={Browser:{acceptsGzip:function(){return true},getMajorVersion:function()
        {return 8},getRevision:function(){return"8.0"},getVersion:function()
        {return"8.0"},isAir:function(){return false},isChrome:function(){return 
        false},isFirefox:function(){return false},isGecko:function(){return false},isIe:function()
        {return true},isIphone:function(){return false},isLinux:function(){return 
        false},isMac:function(){return false},isMobile:function(){return false},isMozilla:function()
        {return false},isOpera:function(){return false},isRtf:function(){return 
        true},isSafari:function(){return false},isSun:function(){return false},isWap:function()
        {return false},isWapXhtml:function(){return false},isWebKit:function(){return 
        false},isWindows:function(){return true},isWml:function(){return false}},Data:
        {NAV_SELECTOR:"#navigation",isCustomizationView:function(){return false},notices:
        [null]},ThemeDisplay:{getLayoutId:function(){return"1"},getLayoutURL:function()
        {return"http://192.168.131.161:9080/web/guest/home"},getParentLayoutId:function()
        {return"0"},isPrivateLayout:function(){return"false"},isVirtualLayout:function(){return 
        false},getBCP47LanguageId:function(){return"en-US"},getCDNBaseURL:function()
        {return"http://192.168.131.161:9080"},getCDNDynamicResourcesHost:function()
        {return""},getCDNHost:function(){return""},getCompanyId:function()
        {return"10157"},getCompanyGroupId:function(){return"10197"},getDefaultLanguageId:function()
        {return"en_US"},getDoAsUserIdEncoded:function(){return""},getLanguageId:function()
        {return"en_US"},getParentGroupId:function(){return"10184"},getPathContext:function()
        {return""},getPathImage:function(){return"/image"},getPathJavaScript:function(){return"
        /html/js"},getPathMain:function(){return"/c"},getPathThemeImages:function(){return"http:
        //192.168.131.161:9080/html/themes/classic/images"},getPathThemeRoot:function(){return"
        /html/themes/classic"},getPlid:function(){return"10187"},getPortalURL:function(){return"http:
        //192.168.131.161:9080"},getPortletSetupShowBordersDefault:function(){return 
        true},getScopeGroupId:function(){return"10184"},getScopeGroupIdOrLiveGroupId:function()
        {return"10184"},getSessionId:function(){return""},getSiteGroupId:function()
        {return"10184"},getURLControlPanel:function(){return"/group
        /control_panel?refererPlid=10187"},getURLHome:function(){return"http\x3a\x2f\x2f192\x2e168
        \x2e131\x2e161\x3a9080\x2fweb\x2fguest"},getUserId:function()
        {return"10201"},getUserName:function(){return"\u0054\u0065\u0073\u0074\u0020\u0054\u0065\u0073
        \u0074"},isAddSessionIdToURL:function(){return false},isFreeformLayout:function(){return 
        false},isImpersonated:function(){return false},isSignedIn:function(){return 
        true},isStateExclusive:function(){return false},isStateMaximized:function(){return 
        true},isStatePopUp:function(){return false}},PropsValues:{NTLM_AUTH_ENABLED:false}};var 
        themeDisplay=Liferay.ThemeDisplay;Liferay.AUI={getAvailableLangPath:function()
        {return"available_languages.jsp?browserId=ie&themeId=classic&colorSchemeId=01&minifierType=js&languageId=en_US&b=6200&t=1381459149674"},getCombine:function(){return 
        true},getComboPath:function(){return"/combo/?browserId=ie&minifierType=&languageId=en_US&
        b=6200&t=1381459149674&"},getFilter:function(){return"min"},getJavaScriptRootPath:function()
        {return"/html/js"},getLangPath:function(){return"aui_lang.jsp?browserId=ie&themeId=classic&
        colorSchemeId=01&minifierType=js&languageId=en_US&b=6200&t=1381459149674"}};
        Liferay.authToken="Lv2kTkDV";Liferay.currentURL="\x2fweb\x2fguest\x2fhome\x3f_16_chartId
        \x3d\x2522\x2f\x253E\x253Cscript\x2520type\x3d\x2522text\x2fjavascript\x2522\x253Ealert\x28123
        \x29\x3b\x253C\x2fscript\x253E\x26p_p_id\x3d16\x26p_p_lifecycle\x3d0\x26p_p_state\x3dmaximized
        \x26p_p_mode\x3dview\x26p_p_col_id\x3dcolumn-1\x26_16_struts_action
        \x3d\x252Fcurrency_converter\x252Fview";
        Liferay.currentURLEncoded="%2Fweb%2Fguest%2Fhome%3F_16_chartId%3D%2522
        %2F%253E%253Cscript%2520type%3D%2522text%2Fjavascript%2522%253Ealert%28123%29%3B
        %253C%2Fscript%253E%26p_p_id%3D16%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-1%26_16_struts_action%3D%252Fcurrency_converter%252Fview"; Liferay._editControlsState="visible"; Skip to Content 
        

        Attachments

        1. 6.1.x.JPG
          6.1.x.JPG
          109 kB
        2. Firefox.JPG
          Firefox.JPG
          133 kB
        3. IE8.JPG
          IE8.JPG
          327 kB
        4. IE8(2).JPG
          IE8(2).JPG
          190 kB
        5. ie8 - master.jpg
          ie8 - master.jpg
          146 kB

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 47 weeks, 5 days ago

                Packages

                Version Package
                6.2.0 CE RC5
                7.0.0 M3