IBM Support

PI99133: API GETENABLEDENTITYDEFS RETURNS NULL IF NO RESULTS ARE RETURNED, IT SHOULD RETURN AN EMPTY SET OF ENTITYDEFS INSTEAD

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If you use an ALIAS for a different user than the original owner
    of the database you will get the error below showing in a
    ClearQuest Web tracing:
    
    API GetEnabledEntityDefs returns null if no results are
    returned, it should return an empty set of EntityDefs instead
    
    
    Steps to Reproduce the behavior:
    
    1. Create 2 DB2 databases using a database owner like for
    example "userA" (on DB2ADMNS group).
    
    2. Create the Schema Repository connection and update the
    database properties on ClearQuest Maintenance Tool and
    ClearQuest Designer to connect with "userA" that is the database
    owner for those databases.
    
    3. ClearQuest Web will work without any issues.
    
    3. Create a new user "userB" and add it to the DB2ADMNS group.
    
    4. Run a script to create an User Alias for the "userB" in the
    User Database tables.
    
    5. Change the User Database properties to use "userB" instead of
    "userA".
    
    Note: Probably you will see an error in regarding user
    permissions to update tables. Running the "db2 grant dataaccess
    on database to user <userB>" command, should resolve this
    permission issue and you are able to update the User Database
    properties to user "userB".
    
    6. Now, when using ClearQuest Web you will start to see the
    error when tracing ClearQuest Web and the ClearQuest will became
    slow, unresponsive and throwing errors (Eg.: when running a
    query, open a record, trying to submit a new record).
    
    Note: The issue with the API only becomes significant because of
    a table ownership issue which causes problems loading metadata.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ClearQuest API                                               *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The ClearQuest API GetEnabledEntityDefs can return a null    *
    * value if there are no entity defs selected by the call.  It  *
    * should return an empty set of entitydefs instead.  This can  *
    * cause performance and other problems for consumers of the    *
    * API such as CQ Web, especially if the ClearQuest database    *
    * table ownership was not configured correctly.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • A fix is available in ClearQuest 9.0.1.4
    The ClearQuest API GetEnabledEntityDefs now returns an empty set
    of entitydefs in all cases when there are no entitydefs returned
    by the call.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI99133

  • Reported component name

    CLEARQUEST WIN

  • Reported component ID

    5724G3600

  • Reported release

    901

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-13

  • Closed date

    2018-08-14

  • Last modified date

    2018-08-14

  • 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

    CLEARQUEST WIN

  • Fixed component ID

    5724G3600

Applicable component levels

  • R901 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"901","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
13 January 2022