Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-251

ReadHeadersInterceptor did not account for whitespace before the closing header tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-M1
    • 2.0-M1
    • Soap Binding
    • None

    Description

      If headers where included in a SOAP request an error would occur saying Operation Body was not found. This was due to whitespace which did not create the expected outcome of passing over the body element.

      .nextTag() resolves this.

      However, apart from skipping whitespace .nextTag() also skips COMMENT, or PROCESSING_INSTRUCTION. If this is required then the following would also work.

      while (xmlReader.isWhiteSpace())

      { xmlReader.next(); }

      However, I don't believe there is support in place for processing COMMENT, or PROCESSING_INSTRUCTION when setting headers. So I used .nextTag()

      Attachments

        1. ReadHeadersInterceptorPatch.patch
          0.6 kB
          Jonathan Hall

        Activity

          People

            tli Tom Li
            jonh Jonathan Hall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: