Axis2
  1. Axis2
  2. AXIS2-4712

remove hardcoded setting of content-type to text/xml from AxisServlet

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.5, 1.6.0
    • Component/s: transports
    • Labels:
      None

      Description

      AxisServlet contains a call to setContentType after the response has been written which may cause the content type to be overwritten with "text/xml". Normally this does not seem to interfere with the response because it has already been written, but it has been shown to cause problems when responses are being cached. Suggest to only force content-type to "text/xml" if the response has not yet been written.

      1. AXIS2-4712.patch
        1 kB
        Lori VanGulick

        Issue Links

          Activity

          Hide
          Lori VanGulick added a comment -

          Attached patch with fix for this problem

          Show
          Lori VanGulick added a comment - Attached patch with fix for this problem
          Hide
          Andreas Veithen added a comment -

          There was a missing piece in this patch. This was fixed in r1055120.

          Show
          Andreas Veithen added a comment - There was a missing piece in this patch. This was fixed in r1055120.
          Hide
          Andreas Veithen added a comment -

          Merged to the 1.5 branch as well (see r1055186).

          Show
          Andreas Veithen added a comment - Merged to the 1.5 branch as well (see r1055186).

            People

            • Assignee:
              Rich Scheuerle
              Reporter:
              Lori VanGulick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development