Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-156

StringIndexOutOfBoundsException thrown if WS-addressing values are epmty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2013.02
    • servicemix-soap
    • None
    • W2K Server, JDK1.5_10

    Description

      If WS-addressing tag Action is empty, SOAP component throws exception because AddressingHandler.split doesn't check for empty string and uses string.substring improperly.

      Here's the exception stack:

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1768)
      at org.apache.servicemix.soap.handlers.addressing.AddressingHandler.split(AddressingHandler.
      java:154)
      at org.apache.servicemix.soap.handlers.addressing.AddressingHandler.onReceive(AddressingHand
      ler.java:84)
      at org.apache.servicemix.soap.SoapHelper.onReceive(SoapHelper.java:111)
      at org.apache.servicemix.http.processors.ConsumerProcessor.process(ConsumerProcessor.java:17
      7)
      ...

      Attachments

        1. SM-820.patch
          8 kB
          Jeff Peterson

        Activity

          People

            Unassigned Unassigned
            mtebenev Maxim Y. Tebenev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: