IBM Support

IT20775: GATEWAYSCRIPT MIGHT THROW PROCESSING ERROR WHEN PARSING JWS SIGNATURE CONTAINING X5C HEADER USING JOSE MODULE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When using the jose() module in GatewayScript to validate a JWS
    Signature in a JSON payload, and the signature contains an x5c
    header, a processing error might be thrown similar to this:
    20170504T212544.436Z
    [domain_name][0x85800007][gatewayscript][error]
    mpgw(service_name): tid(20016)[request][X.X.X.X] gtid(20016):
    GatewayScript processing Error 'TypeError: Invalid type 'array
    (...)' detected on method invocation. Method name:
    setProtected; Parameter index: 1; Expected type: string
    In file 'gatewayscript:///modules/_dputil.js' line:34,
    stack:TypeError: Invalid type 'array(...)'
    

Local fix

Problem summary

  • A JWS or JWE with a x5c header will incorrectly fail parsing
    for a datatype error.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT20775

  • Reported component name

    DATAPOWER

  • Reported component ID

    DP1234567

  • Reported release

    750

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-05-26

  • Closed date

    2017-07-27

  • Last modified date

    2017-08-11

  • 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

  • R720 PSY

       UP

  • R750 PSY

       UP

  • R751 PSY

       UP

  • R752 PSY

       UP

  • R760 PSY

       UP



Document information

More support for: IBM DataPower Gateways
General

Software version: 750

Reference #: IT20775

Modified date: 11 August 2017