IBM Support

PI76017: JAX-WS WS-Security Error CWWSS5634E with relative URI

Fixes are available

9.0.0.4: WebSphere Application Server traditional V9.0 Fix Pack 4
8.5.5.12: WebSphere Application Server V8.5.5 Fix Pack 12
9.0.0.5: WebSphere Application Server traditional V9.0 Fix Pack 5
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
9.0.0.6: WebSphere Application Server traditional V9.0 Fix Pack 6
8.5.5.13: WebSphere Application Server V8.5.5 Fix Pack 13
9.0.0.7: WebSphere Application Server traditional V9.0 Fix Pack 7
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
9.0.0.8: WebSphere Application Server traditional V9.0 Fix Pack 8
8.5.5.14: WebSphere Application Server V8.5.5 Fix Pack 14
9.0.0.9: WebSphere Application Server traditional V9.0 Fix Pack 9
9.0.0.10: WebSphere Application Server traditional V9.0 Fix Pack 10
8.5.5.15: WebSphere Application Server V8.5.5 Fix Pack 15
9.0.0.11: WebSphere Application Server traditional V9.0 Fix Pack 11
9.0.5.0: WebSphere Application Server traditional Version 9.0.5 Refresh Pack
9.0.5.1: WebSphere Application Server traditional Version 9.0.5 Fix Pack 1
9.0.5.2: WebSphere Application Server traditional Version 9.0.5 Fix Pack 2
8.5.5.17: WebSphere Application Server V8.5.5 Fix Pack 17
9.0.5.3: WebSphere Application Server traditional Version 9.0.5 Fix Pack 3
9.0.5.4: WebSphere Application Server traditional Version 9.0.5 Fix Pack 4
9.0.5.5: WebSphere Application Server traditional Version 9.0.5 Fix Pack 5
WebSphere Application Server traditional 9.0.5.6
9.0.5.7: WebSphere Application Server traditional Version 9.0.5 Fix Pack 7
9.0.5.8: WebSphere Application Server traditional Version 9.0.5.8
8.5.5.20: WebSphere Application Server V8.5.5.20
8.5.5.18: WebSphere Application Server V8.5.5 Fix Pack 18
8.5.5.19: WebSphere Application Server V8.5.5 Fix Pack 19
9.0.5.9: WebSphere Application Server traditional Version 9.0.5.9
9.0.5.10: WebSphere Application Server traditional Version 9.0.5.10
8.5.5.16: WebSphere Application Server V8.5.5 Fix Pack 16
8.5.5.21: WebSphere Application Server V8.5.5.21
9.0.5.11: WebSphere Application Server traditional Version 9.0.5.11

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following is reported in the logs when WS-Security
    attempts to process a message that contains a relative
    namespace:
    
    [2/3/17 14:58:06:874 UTC] 000000be WSSecurityGen E
    CWWSS5514E: An exception while processing WS-Security message:
    com.ibm.wsspi.wssecurity.core.SoapSecurityException:
    CWWSS5634E: Signing the message produced the following
    exception: Found a relative URI: xmlns:ns4='abc/schemas':
    java.lang.RuntimeException: Found a relative URI:
    xmlns:ns4='abc/schemas'
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server and WS-Security enabled JAX-WS       *
    *                  applications and digital signature          *
    ****************************************************************
    * PROBLEM DESCRIPTION: CWWSS5634E when JAX-WS WS-Security      *
    *                      encounters a relative URI during        *
    *                      canonicalization of a message part      *
    ****************************************************************
    * RECOMMENDATION:  Install a fix pack that contains this       *
    *                  APAR.                                       *
    ****************************************************************
    When JAX-WS WS-Security encounters a relative URI during
    canonicalization of a message part, an error like the
    following may occur:
    [2/3/17 14:58:06:874 UTC] 000000be WSSecurityGen E
    CWWSS5514E: An exception while processing WS-Security message:
    com.ibm.wsspi.wssecurity.core.SoapSecurityException:
    CWWSS5634E: Signing the message produced the following
    exception: Found a relative URI: xmlns:ns4='abc/schemas':
    java.lang.RuntimeException: Found a relative URI:
    xmlns:ns4='abc/schemas'
    

Problem conclusion

  • The JAX-WS WS-Security runtime disallows relative namespaces
    because W3C Canonical XML implies that a relative namespace
    could be a security exposure.  It suggests converting a
    relative namespace to an absolute namespace, but gives no
    guidance on how to do this.  Since there is no standard
    method, interoperability between disparate runtimes would not
    be possible.
    
    The preferred fix to this issue is to change the relative
    namespace to an absolute namespace in the wsdl (for example,
    using http://helloNamespace instead of helloNamespace).
    However, there are conditions where this is not possible such
    as when the wsdl is not under the control of the administrator.
    
    When the followng WS-Security custom property is set to
    true, the WS-Security runtime will allow a relative namespace:
    
    com.ibm.wsspi.wssecurity.dsig.relativeNamespaceAllowed
    
    This custom property is set in the WS-Security policy
    set bindings in the Inbound, Outbound, or Inbound and Outbound
    custom properties.
    
    (bindings) > WS-Security > Custom properties
    
    The property must be set to true for each path that you want
    to allow relative namespaces for the application.  For
    instance, if you only want to allow relative namespaces when
    consuming a message, only set the property in the Inbound
    section.  For only generating, set it in Outbound.  If
    you want to allow a relative namespace for both consuming
    and generating, set the new property to true in the 'Inbound
    and Outbound' section.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.45, 8.0.0.14, 8.5.5.12 and 9.0.0.4.  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

    PI76017

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-02-03

  • Closed date

    2017-05-04

  • Last modified date

    2017-05-04

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R700 PSY

       UP

  • R800 PSY

       UP

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
04 May 2022