IBM Support

PH57214: UTF-8 CHARS CONVERTED INCORRECTLY WHEN CONTENT-TYPE HEADER RETURNED BY A WEB SERVICE HAS AN ACTION FIELD INCLUDED IN IT.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When a web server returns a response that includes an action
    field within the Content-Type header UTF-8 characters are
    being converted incorrectly.
    
    An Example of a response returned is :
    
    HTTP/1.1 200 OK
    Content-Type: application/soap+xml; charset=UTF-8;
    action="xxx.xxx.xxx.xxx/soap12/xxxxResponse"
    
    Content-Length: 1421
    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv>
    
    A CICS trace shows :
    
    AP 4800 CCNV  ENTRY - FUNCTION(VERIFY_IANA_CCSID)
           IANA_CCSID(UTF-8; action="http://xxx.xxx.xxx/WS/)
    
    AP 4801 CCNV  EXIT  - FUNCTION(VERIFY_IANA_CCSID)
    
           RESPONSE(EXCEPTION) REASON(IANA_CCSID_NOT_KNOWN)
           IBM_CCSID(0)
    
    i.e. we are treating UTF-8;action= ....  as the codepage. As
    this isn't a valid codepage we use ISO-8859-1 meaning that
    double byte UTF-8 characters are not converted correctly.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All CICS Users                               *
    ****************************************************************
    * PROBLEM DESCRIPTION: CICS does not use the correct code page *
    *                      when converting a HTTP request when     *
    *                      the Content-Type header contains an     *
    *                      action value.                           *
    ****************************************************************
    CICS receives a HTTP request where the Content-Type header
    specifies an action after the charset.  When this is parsed by
    DFHWBCL it incorrectly passes the charset value and action
    appended to it when attempting code page conversion.
    
    An IANA_CCSID_NOT_FOUND exception occurs and conversion is
    performed using ISO-8859-1.  This will cause UTF-8 characters to
    be incorrectly converted.
    

Problem conclusion

  • DFHWBCL has been updated to correctly find the end of the
    charset.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH57214

  • Reported component name

    CICS TS Z/OS V6

  • Reported component ID

    5655YA100

  • Reported release

    400

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-09-28

  • Closed date

    2023-11-30

  • Last modified date

    2023-12-02

  • APAR is sysrouted FROM one or more of the following:

    PH57038

  • APAR is sysrouted TO one or more of the following:

    UI94659

Modules/Macros

  • DFHWBCL
    

Fix information

  • Fixed component name

    CICS TS Z/OS V6

  • Fixed component ID

    5655YA100

Applicable component levels

  • R400 PSY UI94659

       UP23/12/01 P F311

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
04 December 2023