IBM Support

PI67025: SUDO IMPERSONATION FAILING WITH NULLPOINTEREXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When a plugin command with impersonation fails on an agent (ex.
    create file), the user will get a null pointer exception (NPE)
    if the agent property file does not have a value declared for
    property
    com.urbancode.shell.impersonation.unix.scriptPostExecuteAction.
    
    The NPE masks the actual IO exception that the user would see if
    the NPE was not thrown. This makes it difficult for the user to
    know why the command failed.
    
    A code change is needed to check whether
    scriptPostExecuteAction is null before attempting to execute the
    post-execute action when the plugin command fails.
    

Local fix

  • The user can add a valid system command (ex: echo) to the agent
    property file for the property:
    com.urbancode.shell.impersonation.unix.scriptPostExecuteAction.
    
    For example, in the file
    <agent-install-dir>/conf/agent/installed.properties, add the
    property/value pair:
    com.urbancode.shell.impersonation.unix.scriptPostExecuteAction=e
    cho
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All end users on all supported browsers.                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When a plugin command with impersonation fails on an agent   *
    * (ex.                                                         *
    * create file), the user will get a null pointer exception     *
    * (NPE)                                                        *
    * if the agent property file does not have a value declared    *
    * for                                                          *
    * property                                                     *
    * com.urbancode.shell.impersonation.unix.scriptPostExecuteActi *
    * on.                                                          *
    *                                                              *
    * The NPE masks the actual IO exception that the user would    *
    * see if                                                       *
    * the NPE was not thrown. This makes it difficult for the user *
    * to                                                           *
    * know why the command failed.                                 *
    *                                                              *
    * A code change is needed to check whether                     *
    * scriptPostExecuteAction is null before attempting to execute *
    * the                                                          *
    * post-execute action when the plugin command fails.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Fixed in version 6.2.7.3                                     *
    ****************************************************************
    

Problem conclusion

  • Fix is provided in IBM UrbanCode Deploy 6.2.7.3
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI67025

  • Reported component name

    UC DEPLOY

  • Reported component ID

    5725M5400

  • Reported release

    601

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-04

  • Closed date

    2018-05-22

  • Last modified date

    2018-05-22

  • 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

    UC DEPLOY

  • Fixed component ID

    5725M5400

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 May 2018