Fixes are available
APAR status
Closed as program error.
Error description
Incorrect results are returned from calls to ServletContext.getResourcePaths(String path) under the following circumstances. A web application is installed on the Liberty profile where the application contains a WAR file which stores resources in a folder with a name that ends with a .jar extension within the WEB-INF/lib directory, for example WEB-INF/lib/abc/xxx.jar. The application calls ServletContext.getResourcePaths("/abc/") expecting any results indicating a subdirectory to end in a '/', i.e. in this scenario /xxx.jar/. Currently this does not happen and a result of /xxx.jar is returned.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server Liberty Profile * * ServletContext.getResourcePaths(String * * path) API in their web application. * **************************************************************** * PROBLEM DESCRIPTION: Trailing "/" is not consistently * * added to return of call to * * ServletContext.getResourcePaths(String * * path) for subdirectories. * **************************************************************** * RECOMMENDATION: * **************************************************************** When the return paths of ServletContext.getResourcePaths(String path) point to an expanded lib jar under WEB-INF/lib of an expanded war, a / will be missed at the end of path.
Problem conclusion
In the case of expanded lib jar in expanded web application, a / is added at the end of return path of ServletContext.getResourcePaths(String path). The fix for this APAR is currently targeted for inclusion in fix pack 8.5.0.1. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PM67717
Reported component name
LIBERTY PROFILE
Reported component ID
5724J0814
Reported release
850
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-06-27
Closed date
2012-09-26
Last modified date
2012-09-26
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
LIBERTY PROFILE
Fixed component ID
5724J0814
Applicable component levels
R850 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
29 October 2021