IBM Support

PM15864: INCORRECT FORMAT IN DATE HEADER IN SIPREQUEST

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using:
    
    sipServletRequest.setHeader("Date", "Mon, "+new
    Date().toGMTString())
    
    Date is in 12 hour format even though the time should be in PM.
    For example, current time is 14:00 but the date parameter is
    displaying 02:00 instead.
    
    Snippet of the code:
    --------------------
    logger.info("date?toGMTString?is:?"+new?Date().toGMTString());
    
    sipServletRequest.setHeader("Date",?
    "Mon,?"+new?Date().toGMTString());
    logger.info(sipServletRequest.toString());
    
    
    Sample output:
    ---------------
    
    date toGMTString is: 16 Mar 2010 12:57:29 GMT
    
    ...
    Max-Forwards: 70
    CSeq: 2 MESSAGE
    Date: Tue, 16 Mar 2010 00:57:29 GMT
    Last-Modified: 16 Mar 2010 12:57:29 GMT
    ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  SIP (Session Initiation Protocol) users     *
    *                  of IBM WebSphere Application Server V6.1    *
    *                  and V7.0                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: SIP Date header field is encoded in     *
    *                      12-hour time format instead of          *
    *                      24-hour time format.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The application sets a Date header in a SIP message, using
    the 24-hour clock representation, but when sending out the
    message, it is encoded in 12-hour clock format.
    
    For example, the application calls:
    SipServletMessage.setHeader("Date", "Sat, 13 Nov 2010 23:29:00
    GMT");
    SipServletMessage.send();
    
    And the sent message contains:
    Date: Sat, 13 Nov 2010 11:29:00 GMT
    
    This is a bug in the SIP container, encoding the time value in
    12-hour clock representation. RFC 3261, section 25.1,
    specifies the time value syntax in the range 00:00:00 -
    23:59:59.
    

Problem conclusion

  • The bug is fixed in the SIP container code. With this fix, the
    time value in the Date header is encoded in 24-hour clock
    representation.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 1.0.0.5.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM15864

  • Reported component name

    CEA FEATUREPACK

  • Reported component ID

    5724J0855

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-06-03

  • Closed date

    2010-06-03

  • Last modified date

    2010-06-03

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

    PM11298

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

Fix information

  • Fixed component name

    CEA FEATUREPACK

  • Fixed component ID

    5724J0855

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"700","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022