IBM Support

JR57186: Store path prefix is removed during preview when empty context root is used

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If you specify an empty context root in the wc-server.xml by
    setting context-root-rewrite to '/', after you add a new product
     in the workspace, you cannot preview the new product. The
    product is not add to the index when
    SynchronizeSearchIndexCmdImpl runs, which is supposed to trigger
     a delta index.
    
    You might encounter the following message in the logs if tracing
     is enabled:
    
    com.ibm.commerce.content.preview.command.SynchronizeSearchIndexC
    mdImpl setRequestProperties(TypedProperty) catentryId retrieved
    from the preview URL: null
    
    The updated catentry_id cannot be recognized because
    SynchronizeSearchIndexCmdImpl will always assume there is a
    store path prefix, even if an empty context root is used.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce Version 7 Feature Pack 8 and Version 8.
    
    PROBLEM ABSTRACT:
    Store path prefix is removed during preview when empty context
    root is used
    
    BUSINESS IMPACT:
    Cannot preview new content when using a custom context root.
    
    RECOMMENDATION:
    

Problem conclusion

  • Updated the preview logic to look for the context root prefix
    configuration instead of assuming /webapp/wcs/stores/servlet
    which is of length 25.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR57186

  • Reported component name

    WC BUS DEV ED W

  • Reported component ID

    5724I3900

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    YesSpecatt / Xsystem

  • Submitted date

    2016-12-19

  • Closed date

    2017-01-12

  • Last modified date

    2017-01-12

  • 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 DEV ED W

  • Fixed component ID

    5724I3900

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSYT2H","label":"WebSphere Commerce Developer 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