Direct link to fix
APAR status
Closed as new function.
Error description
The DynaCacheFilterMappings component provides configuration settings to specify certain request attributes be added to HttpServletRequest objects. However, it does not allow custom code to determine the attribute values to be added.
Local fix
Problem summary
USERS AFFECTED: Users attempting to implement cache policies using custom attributes. PROBLEM ABSTRACT: This fix is to allow custom code to add request attributes for servlet caching. BUSINESS IMPACT: Implementation is not possible without the ifix. RECOMMENDATION:
Problem conclusion
The DynaCacheFilterMappings component tag in the wc-server.xml instance configuration file provides a property that defines several <map> tags. Each <map> tag defines how a request attribute can be added to the HttpServletRequest object. This fix allows custom code to be configured using a <map> tag. Each <map> tag can specify the following attributes: className - specify the fully qualified java class name of the class that provides a static method that can be called to determine the attribute value. dynacacheAttributeName - specify the name of the attribute to be added to the HttpServletRequest object. methodName - specify the name of a static method of the class specified by the className attribute. The static method should return a java.lang.String and accepts the following parameters: javax.servlet.http.HttpServletRequest - the request object com.ibm.commerce.command.CommandContext - the command context for this request java.lang.String - the name of the attribute (the value of the dynacacheAttributeName <map> configuration attribute) When the returned String value is not null and is not empty, it is added to the HttpServletRequest using the setAttribute method. For example, to call the MyClass.getMyAttributeValue(HttpServletRequest, CommandContext, String) method to add an attribute named "MyAttribute" to the request object, specify the following <map> tag: <map className="com.mycompany.MyClass" display="false" dynacacheAttributeName="MyAttribute" methodName="getMyAttributeValue" name="getMyAttributeValue"/> ------------------------------------------------------------- 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
JR45225
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 / New Function
Submitted date
2012-12-21
Closed date
2013-05-31
Last modified date
2013-05-31
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:
07 December 2021