IBM Support

JR46279: CMVC 226880 - THE PROBLEM WHERE THE NEW USER AGENT WAS CACHED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Some of our store pages use user-agent to detect which browsers
    hit the server. The Store acts accordingly depending on the
    browser.\line \line For example, the user-agent checks for the
    following -\line \line 1.  Checks for Android and iOS
    device\line 2.  Checks for IE6 for unsupported browser
    issue\line 3.  Checks for IE7 and IE8 for bazaar voice.\line
    \line However, the current check for user-agent is in JSP level
    and when caching is turned on for that specific page, it will
    actually be cached.  This means the store page will not display
    correctly on certain browsers depending on the page that has
    been cached.
    

Local fix

  • The only workaround is to turn off caching so that the user
    agent will not be cache.
    

Problem summary

  • USERS AFFECTED:
     WebSphere Commerce users on v7.0 who use IE6, iOS and Android
    devices
    
     PROBLEM ABSTRACT:
     JSP level User-Agent cached value is used in the store. As a
    result, if cache is enabled the wrong page will be displayed for
    different devices.
    
     BUSINESS IMPACT:
     Store page will not be display correctly on certain browsers
    depending on the page that has been cached.  For example.
    
     When cache is enabled and empty initially, and someone uses IE6
    to hit the store, the page will be cached.  Afterwards, all user
    who hit the store page regardless of the browser will see the
    Unsupported browser error.
    
     Similar situation for iOS specific code.
    
     RECOMMENDATION:
     The way to solve this problem is to use JavaScript to detect
    the user-agent instead.
    

Problem conclusion

  • In the code, search for "header['User-Agent']", which is the a
    JSP code to check user-agent, instead, use the javscript object
    "navigator.userAgent" to check.
    
    
     -------------------------------------------------------------
     The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
     http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR46279

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Pervasive

  • Submitted date

    2013-04-10

  • Closed date

    2013-06-06

  • Last modified date

    2013-06-06

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
06 June 2013