IBM Support

IT31967: EXPORT OF SYSTEM SETTING FROM REST INTERFACES SHOWS INVALID JSON

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • DataPower response failed when validated. It will fail at the
    'Serial Number' and 'EntitlementNumber' fields. If quotations
    are placed around the numbers to make them a string, the
    response becomes valid.
    
    Example:
    
    {
     "_links": {
     "self": {
    
    "href": "/mgmt/actionqueue/default/pending/Export"
     }
     },
    
    "status": "completed",
     "result": {
     "LoadConfiguration": {
    
    "SystemSettings": {
     "name": "System-Settings",
     "mAdminState":
    "enabled",
     "UserSummary": "user",
     "ProductOID":
    "1.2.3.4.5.6.78910.2.3",
     "Description": "IBM DataPower
    Gateway",
     "SerialNumber": 0000000, <<<
     "EntitlementNumber":
    0000000, <<<
     "ProductID": "5725 [Rev None]",
     "SystemName":
    "systemname",
     "Services": x,
     "BackupMode": "secure",
    
    "ProductMode": "normal",
     "CustomUIFile": "local:///login..",
    
    "AuditReserve": 40,
     "Locale": "en",
     "SystemLogFixedFormat":
    "off"
     }
     }
     }
    }
    

Local fix

  • Two possible workarounds:
    1. Simply add the quotations around
    the numbers to make them a string.
    2. Use a GET to uri
    /mgmt/config/default/SystemSettings as opposed to an export of
    the config. This is an easier query (one part)
    and will produce
    valid JSON.
    

Problem summary

  • In some specific Rest Management Interface responses an object
    might display a number with leading 0's which is an invalid JSON
    number.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT31967

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    18X

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-02-24

  • Closed date

    2020-05-01

  • Last modified date

    2020-05-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

    DATAPOWER

  • Fixed component ID

    DP1234567

Applicable component levels

  • R18X PSY

       UP

[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateways"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"18X"}]

Document Information

Modified date:
28 September 2021