Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-147

WCF interop issue: Security header ordering constraint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.8, 1.6
    • WSS4J Handlers
    • None
    • Windows XP, Java 1.5, CXF 2.1.2, .Net 3.5

    Description

      I have WCF Client which uses WS-Security UsernameToken profile. WCF also automatically adds a TimeStamp header which comes before the UsernameToken header in the Security header.
      If I try to call a CXF web service using CXF exposed from a Java container then "Security header cannot be authorized" exception is thrown.

      The reason is that WSHandler::checkReceiverResults returns false. WSS4J excepts the security header contents to be in a particular oder in which Timestamp should come after UsernameToken but in this case it is the opposite and the validation fails. The WS-Security spec doesnt specify this ordering constraint and seems to have been self-imposed by WSS4J which is incorrect and needs to be fixed for the interop to work as desired.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            asawhney Aditya Sawhney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: