ICEfaces
  1. ICEfaces
  2. ICE-10884

Add meta tag to Global logging page

    Details

      Description

      In some IE configurations it will automatically load intranet web pages into the IE Compatibility Mode (Document Mode IE7). When this is done it is preventing the Global logging from updating automatically. The suggested solution for this is to add in a meta tag for this page which will force IE to load it into the latest version. For example:

      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      1. console1.PNG
        50 kB
      2. console2.PNG
        16 kB

        Activity

        Arran Mccullough created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Fix Version/s EE-4.1.0.GA [ 12171 ]
        Fix Version/s EE-3.3.0.GA_P04 [ 12270 ]
        Assignee Priority P2 [ 10011 ]
        Hide
        Mircea Toma added a comment -

        Added meta-tag that blocks IE10/11 from emulating older browsers.

        Show
        Mircea Toma added a comment - Added meta-tag that blocks IE10/11 from emulating older browsers.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46922 Thu Dec 24 15:24:08 MST 2015 mircea.toma ICE-10884 Added meta-tag that blocks IE10/11 from emulating older browsers.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/log.html
        Hide
        Ken Fyten added a comment -

        Re-opened for JS errors reported by QA.

        Show
        Ken Fyten added a comment - Re-opened for JS errors reported by QA.
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Mircea Toma added a comment -

        Modified copy to clipboard and download log functionality to still work when the local storage entries used for global logging are not created.

        Show
        Mircea Toma added a comment - Modified copy to clipboard and download log functionality to still work when the local storage entries used for global logging are not created.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46941 Wed Jan 06 14:42:39 MST 2016 mircea.toma ICE-10884 Modified copy to clipboard and download log functionality to still work when the local storage entries used for global logging are not created.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/log.html
        Hide
        Mircea Toma added a comment - - edited

        Carmen, in order to test this issue you have to add the server's host name to the list in Compatibility View settings (just as Arran described above). This will ensure that pages loaded from the specified hosts will run in compatibility mode (IE7). After the global logging page is loaded you can use the Developer Tools to verify what mode was used to load the page and if any errors are triggered when interacting with it.
        As hopefully you will see the global logging page is loaded in Document Mode=Edge which proves that the meta-tag does its job.

        Changing the mode in Developer Tools will always override the setup established by the page markup.

        Show
        Mircea Toma added a comment - - edited Carmen, in order to test this issue you have to add the server's host name to the list in Compatibility View settings (just as Arran described above). This will ensure that pages loaded from the specified hosts will run in compatibility mode (IE7). After the global logging page is loaded you can use the Developer Tools to verify what mode was used to load the page and if any errors are triggered when interacting with it. As hopefully you will see the global logging page is loaded in Document Mode=Edge which proves that the meta-tag does its job. Changing the mode in Developer Tools will always override the setup established by the page markup.
        Hide
        Mircea Toma added a comment - - edited

        Run copyToClipboard() and downloadLog() functions only when localStorage functionality is available to avoid JS errors thrown in IE7.

        Show
        Mircea Toma added a comment - - edited Run copyToClipboard() and downloadLog() functions only when localStorage functionality is available to avoid JS errors thrown in IE7.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #46944 Wed Jan 06 14:58:03 MST 2016 mircea.toma ICE-10884 Run copyToClipboard() and downloadLog() functions only when localStorage functionality is available.
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/resources/META-INF/resources/ice.core/log.html
        Hide
        Liana Munroe added a comment - - edited

        Tested with ICEfaces 4 trunk, EE-3.3.0 maintenance branch r46945, Tomcat 8, IE 11 with localhost added to the compatibility view settings.
        The global logging page is indeed loaded in Document Mode Edge as per fix however, when using the Download log feature WHILE the dev console is open an error occurs. At this point you can no longer interact with the page. If the dev console is not open when using Download Log, no issue is seen and the log an be downloaded.
        See screenshot console1.png

        SCRIPT5007: Object expected
        File: log.html.jsf, Line: 107, Column: 17

        Also it was noticed that the User agent string is set to Internet Explorer 6, not sure if this has any importance. See screenshot console2.png

        Show
        Liana Munroe added a comment - - edited Tested with ICEfaces 4 trunk, EE-3.3.0 maintenance branch r46945, Tomcat 8, IE 11 with localhost added to the compatibility view settings. The global logging page is indeed loaded in Document Mode Edge as per fix however, when using the Download log feature WHILE the dev console is open an error occurs. At this point you can no longer interact with the page. If the dev console is not open when using Download Log, no issue is seen and the log an be downloaded. See screenshot console1.png SCRIPT5007: Object expected File: log.html.jsf, Line: 107, Column: 17 Also it was noticed that the User agent string is set to Internet Explorer 6, not sure if this has any importance. See screenshot console2.png
        Liana Munroe made changes -
        Attachment console1.PNG [ 22035 ]
        Attachment console2.PNG [ 22036 ]
        Hide
        Mircea Toma added a comment -

        I can reproduce this last issue only if I manually select the IE6 user agent string. If the log page is loaded without intervention the "Default" option is selected (which does not trigger the issue).

        Please try again the test with a freshly opened log page.

        Show
        Mircea Toma added a comment - I can reproduce this last issue only if I manually select the IE6 user agent string. If the log page is loaded without intervention the "Default" option is selected (which does not trigger the issue). Please try again the test with a freshly opened log page.
        Hide
        Liana Munroe added a comment - - edited

        It appears that the second issue appears only on my local machine. After selecting default for the User agent String it was no longer set to Internet Explorer 6 when opening new logging windows.
        Once the logger was loading with the correct User Agent String the console error issue was no longer seen.

        Show
        Liana Munroe added a comment - - edited It appears that the second issue appears only on my local machine. After selecting default for the User agent String it was no longer set to Internet Explorer 6 when opening new logging windows. Once the logger was loading with the correct User Agent String the console error issue was no longer seen.
        Ken Fyten made changes -
        Fix Version/s EE-4.1.0.BETA [ 13072 ]
        Ken Fyten made changes -
        Fix Version/s 4.2.BETA [ 13091 ]
        Fix Version/s 4.2 [ 12870 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: