APAR status
Closed as program error.
Error description
If your Aurora starter store contains category pages that do not have SEO keywords to generate SEO URLs, shoppers cannot change the store language when they are on that particular page. A generic error displays because the URL that is generated includes a pound character (#). For example: https://hostname.com/webapp/wcs/stores/servlet/CategoryDisplay?c atalogId=10051%23facet%3A&categoryId=46501&langId=-7&storeId=201 95 The catalogId looks like it is being set to "10051#facet:" WebSphere Commerce search processes query parameters and cannot handle a redirect URL with the pound character (#).
Local fix
Update the StoreCommonUtilities.js file by changing the "switchLanguageCurrency" method. Add an "or" condition to also account for CategoryDisplay pages. Note: An interim fix does not update your already published stores. For your published Aurora starter store, you need to add the following change manually: Change from: // get rid of anything after pound sign(#) in the URL if it is a SearchDisplay request. // search processes the query parameters and cannot handle a redirect URL with pound sign(#) if (browserURL.indexOf('SearchDisplay') != -1 && browserURL.indexOf('#') != -1) { To: // get rid of anything after pound sign(#) in the URL if it is a SearchDisplay request. // search processes the query parameters and cannot handle a redirect URL with pound sign(#) if ((browserURL.indexOf('SearchDisplay') != -1 || browserURL.indexOf('CategoryDisplay') != -1 ) && browserURL.indexOf('#') != -1) {
Problem summary
USERS AFFECTED: WebSphere Commerce V7 users on Feature Pack 5 or later using the Aurora starter store. PROBLEM ABSTRACT: Generic Error occurs when a shopper attempts to change the store language on a page with a non-SEO URL BUSINESS IMPACT: Shoppers cannot change store languages on some store pages. RECOMMENDATION:
Problem conclusion
Update a method in the StoreCommonUtilities.js file to generate appropriate URLs for non-SEO category pages.
Temporary fix
Comments
APAR Information
APAR number
JR54110
Reported component name
WC BUS EDITION
Reported component ID
5724I3800
Reported release
700
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-08-20
Closed date
2015-12-14
Last modified date
2015-12-21
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