IBM Support

JR54450: Static content page URLs from the auto suggest menu or from the Advanced search page leads to an error page

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Static content page URLs are not completely formed in the auto
    suggest menu.
    
    By default, static content pages are crawled and when a shopper
    clicks the URL from the the auto suggest menu or from the
    Advanced search page, the context root ('/webapp/wcs/stores') is
     missing in the URL.
    
    This issue occurs when you enable useRelativePath="true" in the
    server configuration file (wc-server.xml).
    For example: <UrlTagConfiguration useRelativePath="true" />
    

Local fix

  • Modifythe SiteContentList_UI.jspf file and find this piece of
    code:
    <c:if test="${!(fn:startsWith(urlValue, '/') ||
    fn:contains(urlValue, '://'))}">
     <wcf:url var="urlValue" value="${urlValue}"/>
    </c:if>
    
    Replace with:
           <c:choose>
    <c:when test="${fn:contains(urlValue, '://')}">
          <wcf:url var="urlValue" value="${urlValue}"/>
    </c:when>
            <c:when test="${!(fn:startsWith(urlValue, '/'))}">
    <wcf:url var="urlValue" value="/${urlValue}"/>
    </c:when>
    </c:choose>
    

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce V7 environments with 'useRelativePath'
    enabled on Feature Pack 7 or later.
    
    PROBLEM ABSTRACT:
    Static content page URLs from the auto suggest menu or from the
    Advanced search page leads to an error page
    
    BUSINESS IMPACT:
    Shoppers cannot successfully access static content pages from
    the auto suggest menu or from the Advanced search page.
    
    RECOMMENDATION:
    

Problem conclusion

  • Modified the SiteContentList_UI.jspf file to ensure that a
    forward slash exists in the URL value before passing it into the
     wcf:url tag if relative path is used.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR54450

  • 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

    2015-10-06

  • Closed date

    2015-12-10

  • Last modified date

    2015-12-10

  • 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"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021