IBM Support

JR48832: CMVC 233347-Bad Ajax URL generated by wcf:url tag when inSSLAcceleratorPort & inNonSSLAcceleratorPort are the same port

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The wcf:url tag is not constructing the proper Ajax URLs when
    the inSSLAcceleratorPort and the inNonSSLAcceleratorPort are
    being set to the same port. This causes the browser to not
    execute the Ajax request since it is conceived as a cross domain
     server call which is not allowed due to possible security
    concerns.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce users on v7 using SSL Accelerator setup
    
    PROBLEM ABSTRACT:
    Bad Ajax URL generated by wcf:url tag when inSSLAcceleratorPort
    & inNonSSLAcceleratorPort are the same port
    
    BUSINESS IMPACT:
    Storefront cannot make Ajax requests
    
    RECOMMENDATION:
    

Problem conclusion

  • The wcf:url tag will detect this configuration and use incoming
    request scheme to build the Ajax URLs in the page.
    
    The following code changes resolves this issue:
    
    if (type.equals("Ajax") && port == inSSLAcceleratorPort && port
    == inNonSSLAcceleratorPort) {
    //use the incoming scheme
        scheme = pageContext.getRequest().getScheme() + "://";
    } else if (type.equals("Ajax") && port == inSSLAcceleratorPort)
    {
        scheme = "https://";
        } else if (type.equals("Ajax") && port ==
    inNonSSLAcceleratorPort) {
        scheme = "http://";
        } else {
        scheme = pageContext.getRequest().getScheme() + "://";
        }
    
    -------------------------------------------------------------
    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

    JR48832

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Serviceability

  • Submitted date

    2013-12-16

  • Closed date

    2014-05-03

  • Last modified date

    2014-05-03

  • 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:
03 May 2014