ICEmobile
  1. ICEmobile
  2. MOBI-106

ICEmobile User-Agent not stable on iOS

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta
    • Fix Version/s: 1.0 Beta
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEmobile

      Description

      initial requests are made with

      User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A334

      whereas subsequent requests are made with

      User-Agent: ICEmobile/1.0.0 CFNetwork/548.0.3 Darwin/11.0.0

      This affects server-side device detection and rendering.

        Activity

        Ted Goddard created issue -
        Ted Goddard made changes -
        Field Original Value New Value
        Assignee Steve Maryka [ steve.maryka ] Ted Goddard [ ted.goddard ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26049 Tue Oct 25 09:30:01 MDT 2011 ted.goddard cache User-Agent marked with Mozilla (MOBI-106)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/utils/UserAgentInfo.java
        Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icemobile/component/impl
        Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icemobile/component/impl/SessionContext.java
        Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icemobile/component
        Commit graph ADD /icemobile/trunk/icemobile/components/component/src/org/icemobile
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icefaces/component/utils/Utils.java
        Hide
        Ted Goddard added a comment -

        It is not possible to configure the User-Agent for iPhone WebKit. Further, the Android client behaves similarly for some requests:

        User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)

        Show
        Ted Goddard added a comment - It is not possible to configure the User-Agent for iPhone WebKit. Further, the Android client behaves similarly for some requests: User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)
        Hide
        Ted Goddard added a comment -

        The strategy used to solve this is to cache the first valid User-Agent in the session: both iPhone and Android clients are observed to use detailed User-Agent headers on their initial requests. Once a User-Agent containing "Mozilla" has been encountered, it will be used for all subsequent detection.

        Show
        Ted Goddard added a comment - The strategy used to solve this is to cache the first valid User-Agent in the session: both iPhone and Android clients are observed to use detailed User-Agent headers on their initial requests. Once a User-Agent containing "Mozilla" has been encountered, it will be used for all subsequent detection.
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #26057 Tue Oct 25 12:43:59 MDT 2011 ted.goddard SessionContext must be serializable (MOBI-106)
        Files Changed
        Commit graph MODIFY /icemobile/trunk/icemobile/components/component/src/org/icemobile/component/impl/SessionContext.java
        Hide
        Ted Goddard added a comment -

        Server-side caches valid User-Agent strings.

        Show
        Ted Goddard added a comment - Server-side caches valid User-Agent strings.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Migration made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: