APAR status
Closed as program error.
Error description
When WCM Component Extensions are embedded in attribute values of other component extensions and both the parent component extension and the embedded component extension's attribute values are delimited with the same delimiting Quote marks (SINGLE_QUOTE=' DOUBLE_QUOTE=") Cause: The parser was not designed to work with single or multiple levels of embedded component extensions when the inner (embedded) and outer (parent) attribute values are delimited with the same Quotation Mark delimiters (SINGLE_QUOTES=') and (DOUBLE_QUOTES=") The Parse error out while parsing the inner matching SINGLE_QOUTE or DOUBLE_QUOTE Delimiter before parsing the complete value of the out attribute. This then generates the rest of the Component extension markup as html and prevent the resolver from properly rendering the Component Extension Markup Troubleshooting the problem From the Customer test cases found in wcm library export name "WCM Quotes" with the setup as follows Site Area: basic Content : basic Content fields name="dateStart" type="Date" Value="Aug 31, 2017, 6:00:00 PM Eastern Daylight Time" name="dateEnd" type="Date" Value="Sep 9, 2017, 6:00:00 PM Eastern Daylight Time" Sample Presentation Template markup that does not properly get parsed Presentation Template name="basic" Markup With Equals, with quotes (",","): [Plugin:Equals text1="true" text2="[Plugin:EvaluateEL value="${[Element context="current" type="content" format="yyyyMMdd" key="dateEnd"] ge [Element context="current" type="content" format="yyyyMMdd" key="dateStart"]}"]"] true [/Plugin:Equals] [Plugin:Otherwise] false [/Plugin:Otherwise] When previewing the presentation template using sitearea name="basic" the following was rendered With Equals, with quotes (",","): [Plugin:Equals text1="true" text2="[Plugin:EvaluateEL value="${20170910 ge 20170901}"]"] true [/Plugin:Equals] The trace logs with trace string com.aptrix.pluto.cmpnt.codec.*=all generated the following messages [2/19/18 14:41:19:253 EST] 00000106 SXMLParser 3 At line 2 : Tag not complete, expecting equal sign. [2/19/18 14:41:19:253 EST] 00000106 SXMLParser 3 At line 2 : Tag not complete, expecting equal sign. After the fix after fix the save is successful and it does not generate the "Tag not complete" messages And the preview of the presenation template renders as follows With Equals, with quotes (",","): true
Local fix
1. Add additional wcm html components containing the embedded inner tags and add the lower level components to the higher level components such that there are not multiple levels of inner component extension tags in the markup in the html components and add them to the main presentation template markup.
Problem summary
When WCM Component Extensions are embedded in attribute values of other component extensions and both the parent component extension and the embedded component extension's attribute values are delimited with the same delimiting Quote marks (SINGLE_QUOTE=' DOUBLE_QUOTE=") Cause: The parser was not designed to work with single or multiple levels of embedded component extensions when the inner (embedded) and outer (parent) attribute values are delimited with the same Quotation Mark delimiters (SINGLE_QUOTES=') and (DOUBLE_QUOTES=") The Parse error out while parsing the inner matching SINGLE_QOUTE or DOUBLE_QUOTE Delimiter before parsing the complete value of the out attribute. This then generates the rest of the Component extension markup as html and prevent the resolver from properly rendering the Component Extension Markup Troubleshooting the problem From the Customer test cases found in wcm library export name "WCM Quotes" with the setup as follows Site Area: basic Content : basic Content fields name="dateStart" type="Date" Value="Aug 31, 2017, 6:00:00 PM Eastern Daylight Time" name="dateEnd" type="Date" Value="Sep 9, 2017, 6:00:00 PM Eastern Daylight Time" Sample Presentation Template markup that does not properly get parsed Presentation Template name="basic" Markup With Equals, with quotes (",","): [Plugin:Equals text1="true" text2="[Plugin:EvaluateEL value="${[Element context="current" type="content" format="yyyyMMdd" key="dateEnd"] ge [Element context="current" type="content" format="yyyyMMdd" key="dateStart"]}"]"] true [/Plugin:Equals] [Plugin:Otherwise] false [/Plugin:Otherwise] When previewing the presentation template using sitearea name="basic" the following was rendered With Equals, with quotes (",","): [Plugin:Equals text1="true" text2="[Plugin:EvaluateEL value="${20170910 ge 20170901}"]"] true [/Plugin:Equals] The trace logs with trace string com.aptrix.pluto.cmpnt.codec.*=all generated the following messages [2/19/18 14:41:19:253 EST] 00000106 SXMLParser 3 At line 2 : Tag not complete, expecting equal sign. [2/19/18 14:41:19:253 EST] 00000106 SXMLParser 3 At line 2 : Tag not complete, expecting equal sign. After the fix after fix the save is successful and it does not generate the "Tag not complete" messages And the preview of the presenation template renders as follows With Equals, with quotes (",","): true
Problem conclusion
Resolving the Problem: A code change was made to the SXML Parser that now allows for parsing multiple levels of inner component extension tag using the same quote delimiters for the inner (embedded) and outer (parent) attribute values A code fix for this issue is integrated into the WebSphere Portal & WCM Combined Cumulative Fix 16 (PI91150) for Portal 8.5 and 9.0 available from Fix Central: http://www-933.ibm.com/support/fixcentral/swg/selectFixes?parent =ibm/WebSphere&product=ibm/WebSphere/WebSphere+Portal&release=Al l&platform=All&function=aparId&apars=PI91150
Temporary fix
Comments
APAR Information
APAR number
PI93968
Reported component name
WEBSPHERE PORTA
Reported component ID
5724E7600
Reported release
850
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-02-19
Closed date
2018-10-07
Last modified date
2018-10-07
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
WEBSPHERE PORTA
Fixed component ID
5724E7600
Applicable component levels
R850 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHRKX","label":"WebSphere Portal"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]
Document Information
Modified date:
21 December 2021