MyFaces Core
  1. MyFaces Core
  2. MYFACES-2154

mobile internet explorer version 6.12 issue

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.8
    • Component/s: General
    • Labels:
      None
    • Environment:
      mobile internet explorer version 6.12
      MyFaces v???

      Description

      Tobias Bräuer reported the following issue:

      Hello,
      There is a problem with mobile internet explorer version 6.12 and
      myfaces. The browser sends a "Accept:
      application/vnd.wap.mms-message;/". We solved that problem by adding
      the following code in the class
      org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils at
      line 1619. If used with tomahawk, the same fix is needed there.

      I have no idea how your community process works, but feel free to add
      the code to your repository.

      if (contentTypeListString == null) {
      FacesContext context = FacesContext.getCurrentInstance();
      if (context != null) {
      contentTypeListString = (String) context.getExternalContext()
      .getRequestHeaderMap().get("Accept");
      // There is a windows mobile IE client (6.12) sending
      // "application/vnd.wap.mms-message;/"
      // This is a workaround ...
      if (contentTypeListString
      .startsWith("application/vnd.wap.mms-message;/"))

      { contentTypeListString = "*/*"; }

      }

      if (contentTypeListString == null)

      { if (log.isDebugEnabled()) log .debug("No content type list given, creating HtmlResponseWriterImpl with default content type."); contentTypeListString = HTML_CONTENT_TYPE; }

      }

      Cheers,

      Tobias Bräuer

        Activity

        Manfred Geiler created issue -
        Manfred Geiler made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Leonardo Uribe made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Assignee Leonardo Uribe [ lu4242 ]
        Fix Version/s 1.2.8-SNAPSHOT [ 12314014 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Fix Version/s 1.2.8 [ 12314390 ]
        Fix Version/s 1.2.8-SNAPSHOT [ 12314014 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Leonardo Uribe
            Reporter:
            Manfred Geiler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development