IBM Support

PK92520: REQUEST FOR A URI WITH A LONG FILE PATH CAN FAIL ON Z/OS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When mod_alias tries to combine the file path from the Alias
    directive with the portion of the URI that comes after the
    alias, a call to apr_filepath_merge fails because APR_PATH_MAX
    is set to 256, the same as _POSIX_PATH_MAX from
    /usr/include/limits.h in distributed Apache. But on z/OS much
    longer paths are supported. APR_PATH_MAX should be set to the
    z/OS limit of 1024.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: IHS users with long paths to web files on    *
    *                 z/OS                                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: IHS can fail to serve static files with *
    * long directory paths on z/OS.  HTTP error code 404 appears   *
    * at the browser and "File not found" appears in the error log *
    ****************************************************************
    * RECOMMENDATION: Apply this fix if the paths to your static   *
    * files to be served as web pages are very long (approaching   *
    * 256 characters).                                             *
    ****************************************************************
    IHS uses an APR_PATH_MAX value of 256 on z/OS.  This can cause
    IHS to fail to serve web pages from static files if the
    directory path approaches 256 characters.
    

Problem conclusion

  •  Since the limits.h header file on z/OS only
    has a commented out PATH_MAX value, IHS will set APR_PATH_MAX
    from _XOPEN_PATH_MAX if that exists, or to 1024 if
    _XOPEN_PATH_MAX does not exist rather than using
    _POSIX_PATH_MAX which is 256 on z/OS.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK92520

  • Reported component name

    WAS IHS ZOS

  • Reported component ID

    5655I3510

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2009-07-28

  • Closed date

    2009-09-17

  • Last modified date

    2012-08-08

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  •    APR.H.IN
    

Fix information

  • Fixed component name

    WAS IHS ZOS

  • Fixed component ID

    5655I3510

Applicable component levels

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1"}]

Document Information

Modified date:
25 September 2020