IBM Support

PI31531: Invoking the 'server' script from a shell with the CDPATH enviro nment variable set may fail.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Depending on how the 'server' script is invoked, the CDPATH
    environment variable can interfere with its operation.  In
    particular, changing directory to a directory that is
    midway along the path to the server script and then
    running the script by specifying the remainder of the path
    plus the name of the script is known to fail when CDPATH
    contains '.'.  For example, if the server script is located
    here:
    
    /some/directory/wlp/bin/server
    
    The following two commands will fail if the CDPATH
    environment variable includes '.':
    
    cd /some/directory/wlp
    bin/server start defaultServer
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile - Command Line       *
    *                  Tools                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Invoking the 'server' script from a     *
    *                      shell with the CDPATH environment       *
    *                      variable set may fail.                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Depending on how the 'server' script is invoked, the CDPATH
    environment variable can interfere with its operation.  In
    particular, changing directory to a directory that is midway
    along the path to the server script and then running the script
    by specifying the remainder of the path plus the name of the
    script is known to fail when CDPATH contains '.'.  For example,
    if the server script is located here:
    
    /some/directory/wlp/bin/server
    
    The following two commands will fail if the CDPATH environment
    variable includes '.':
    
    cd /some/directory/wlp
    bin/server start defaultServer
    

Problem conclusion

  • The server script was updated to internally unset CDPATH before
    invoking any commands that are sensitive to that environment
    variable.  With this change, the server script can be used from
    shells with the CDPATH environment variable set.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.5.  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

    PI31531

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-12-15

  • Closed date

    2015-02-06

  • Last modified date

    2015-02-06

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022