Fixes are available
APAR status
Closed as program error.
Error description
WCM API RenderingContext.getPath() does not always include library. .. When setRenderedContent(String) is used getPath() will return the path with the library. When setRenderedContent(SiteArea) is used getPath() will return the path without the library. The java doc is miss leading and indicates the full path from the servlet on will always be returned.
Local fix
Problem summary
PK99697 WCM API RenderingContext.getPath() does not always include the library despite the java-doc
Problem conclusion
Detailed Problem Description: PK99697 WCM API RenderingContext.getPath() does not always include the library despite the java-doc. The WCM API java-doc states RenderingContext.getPath() "Returns the path to the object being rendered. This is everything after the servlet path, excluding any request parameters." According to the java-doc the library should be included in the path that is returned. In some cases such as after using setRenderedContent(SiteArea) getPath() returns the path without the library like the getLibraryRelativePath() method. Problem Analysis: This behavior is expected. The getPath method was implemented this way to allow for backward compatibility with versions that did not use libraries. There is currently no method available to ensure the library is returned in the path. getLibraryRelativePath() returns the path relative to the library of the object being rendered. That is, the path starting at the Site name. Affected Users: All users affected
Temporary fix
Comments
APAR Information
APAR number
PK99697
Reported component name
LOTUS WEB CONT
Reported component ID
5724I2900
Reported release
61B
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-10-27
Closed date
2009-11-09
Last modified date
2009-11-09
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
WCM
Fix information
Fixed component name
LOTUS WEB CONT
Fixed component ID
5724I2900
Applicable component levels
R61A PSY
UP
R61B PSY
UP
[{"Business Unit":{"code":null,"label":null},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1.0.2","Edition":"","Line of Business":{"code":null,"label":null}}]
Document Information
Modified date:
09 September 2020