XFire
  1. XFire
  2. XFIRE-782

ws-addressing action header is stored with leading and trailing white space

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.4
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When the headers are read in and stored in the context.inMessage.Header the value of the header elements contains new line characters. So for the SOAP message:

      ...
      <soap:Header>
      <wsa:Action>
      http://x.com/TestMethod
      </wsa:Action>
      ...

      The action header contains a new line character at the beginning and end of the string. ie "\n http://x.com/TestMehod\n"

      In the AddressInHandler.invoke method, the action is looked up to find an operation and it can't match anything because of the new line characters. In this line:
      AddressingOperationInfo aop = AddressingOperationInfo.getOperationByInAction(service.getServiceInfo(), headers
      .getAction());

      the headers.getAction() returns the action value with new line characters.

      They need to be stripped off somewhere along the way.

        Activity

        Tomasz Sztelak made changes -
        Field Original Value New Value
        Assignee Dan Diephouse [ dandiep ] Tomasz Sztelak [ tomeks ]
        Hide
        Tomasz Sztelak added a comment -

        Fixed in svn

        Show
        Tomasz Sztelak added a comment - Fixed in svn
        Tomasz Sztelak made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2.4 [ 13035 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Tomasz Sztelak
            Reporter:
            Matthew
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: