IBM Support

LI81943: CREDENTIALS CREATION FAILING WHEN APP NAME IN ID FORMAT

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 the application has the same name as clientid in v5, AMU
    creates the application in v10 with different client id than
    the original, even though the unpack has the original clientid.
    Steps to reproduce:
    1- Run the apicm archive:push command on a cloud data that
    contains one or more application using client-d as the
    name/title:
    For example:
    /cloud/provider-orgs/myorg/catalogs/mycatalog/consumer-orgs/myco
    rg/apps/test-app-dc91/credentials/5f5b352ae4b07921e492d6be.yml
    ----
    api_version: 2.0.0
    client_id: 79550450-cbfc-49c6-83d9-6c9d404f7300
    client_secret_hashed:
    KHN85Bc6Rx2SIYh27BUiO7flUVyj6+11htxWJtpL+Yc=
    name: 5f5b352ae4b07921e492d6be
    type: credential
    ---
    /cloud/provider-orgs/myorg/catalogs/mycatalog/consumer-orgs/myco
    rg/apps/test-app-dc91/app.yml
    ----
    api_version: 2.0.0
    lifecycle_state: production
    metadata:
    v5_created_at: 2020-09-11 08:28:26.585 +0000 UTC
    v5_created_by: user@ibm.com
    v5_id: 5f5b352ae4b07921e492d6bd
    v5_updated_at: 2020-09-11 08:28:26.585 +0000 UTC
    v5_updated_by: user@ibm.com
    name: 79550450-cbfc-49c6-83d9-6c9d404f7300
    redirect_endpoints:
    - https://example.com/redirect
    state: enabled
    title: 79550450-cbfc-49c6-83d9-6c9d404f7300
    type: app
    ----
    2- Check the created application in the management server:
    You see:
    Title: Credential for 79550450-cbfc-49c6-83d9-6c9d404f7300
     Client ID: c24d765676feb15a04643c9a6c3e1582
    

Local fix

Problem summary

  • <span style="background-color:rgb(255, 255, 255)">Create of
    credential, or any other resource could fail if the name was in
    id format</span>
    

Problem conclusion

  • <span style="background-color:rgb(255, 255, 255)">Internally
    id's are in UUID v4 format - refer
    </span>https://en.wikipedia.org/wiki/Universally_unique_identifi
    er#Version_4_(random)<span style="background-color:rgb(255, 255,
    255)">. If name field had a value in that format, creation of
    resource could fail. With the fix, name can have a value in the
    id format used internally.</span>
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI81943

  • Reported component name

    API CONNECT ENT

  • Reported component ID

    5725Z2201

  • Reported release

    A0X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2021-01-20

  • Closed date

    2021-04-01

  • Last modified date

    2021-04-01

  • 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

    API CONNECT ENT

  • Fixed component ID

    5725Z2201

Applicable component levels

  • RA0X PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A0X","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 September 2021