Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-11515

SOAP Response Content Type is 'text/plain' instead of 'text/xml'

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Medium Medium (View bug fix roadmap)
    • None
    • 3.7 Beta 1
    • None
    • .NET 1.1 WebService Client

      Header from WebService call to http://jira.atlassian.com/rpc/soap/jirasoapservice-v2 responds with

      <HTTPHeaders>
      <date>Sun, 12 Nov 2006 02:19:07 GMT</date>
      <server>Apache/2.0.52 (Red Hat)</server>
      <keep-alive>timeout=15, max=100</keep-alive>
      <connection>Keep-Alive</connection>
      <transfer-encoding>chunked</transfer-encoding>
      <content-type>text/plain; charset=UTF-8</content-type>
      </HTTPHeaders>

      This causes a soap client to complain that the content type is supposed to be text/xml

      Seems that this is the same issue as JRA-10743

            [JRASERVER-11515] SOAP Response Content Type is 'text/plain' instead of 'text/xml'

            This is not a bug in JIRA per se.

            I have re-checked and we definitely respond with text/xml

            Also jira.atlassian.com is no longer using mod_caucho or resin so this issue is now defunct.

            ɹǝʞɐq pɐɹq added a comment - This is not a bug in JIRA per se. I have re-checked and we definitely respond with text/xml Also jira.atlassian.com is no longer using mod_caucho or resin so this issue is now defunct.

            This issue also raises its head with Apache web server - seems there was a bug in mod_jk. See http://www.nabble.com/mod_jk---answers-from-appsrv-often-changes-'content-type'-from-text-xml-to-text-plain-t4736483.html for details.

            In either case, if getting the .Net client to use the tomcat port directly is an option, this should bypass the issue.

            Michael McKeown added a comment - This issue also raises its head with Apache web server - seems there was a bug in mod_jk. See http://www.nabble.com/mod_jk---answers-from-appsrv-often-changes-'content-type'-from-text-xml-to-text-plain-t4736483.html for details. In either case, if getting the .Net client to use the tomcat port directly is an option, this should bypass the issue.

            AntonA added a comment -

            We do use mod_caucho. The advantage is that the connections to the app-server are pooled, performance should be better, and that certain information is preserved from the request (e.g. when using mod_proxy the connecting host is always the proxy host, i.e. 127.0.0.1).

            It looks like mod_caucho has a bug.

            AntonA added a comment - We do use mod_caucho. The advantage is that the connections to the app-server are pooled, performance should be better, and that certain information is preserved from the request (e.g. when using mod_proxy the connecting host is always the proxy host, i.e. 127.0.0.1). It looks like mod_caucho has a bug.

            AntonA added a comment -

            Mike,

            Thanks for the update. This is very useful information.

            Cheers,
            Anton

            AntonA added a comment - Mike, Thanks for the update. This is very useful information. Cheers, Anton

            FYI - after experiencing the same issues with Confluence behind a Resin server, the issue was fixed by changing mod_caucho to mod_proxy

            Michael McKeown added a comment - FYI - after experiencing the same issues with Confluence behind a Resin server, the issue was fixed by changing mod_caucho to mod_proxy

            I get this message when I actually try to invoke a method, such as Login. The response is correct (with a sessionid) but the framework fails because of the content type

            Michael Cline added a comment - I get this message when I actually try to invoke a method, such as Login. The response is correct (with a sessionid) but the framework fails because of the content type

            I am pointing to:
            http://jira.atlassian.com/rpc/soap/jirasoapservice-v2

            the issue is only with the content-type of the message, the message is properly formatted. The HTTP Header sends the incorrect content-type. Perhaps only .NET webservices check for this content-type. I put a piece in the middle that does a string replace on content-type: text/plain with text/xml and the functionality works fine. Maybe it is a setting of the webserver rather than the Jira application.

            Certainly doesn't work for .NET and other versions work fine (http://jira.codehaus.org/rpc/soap/jirasoapservice-v2)

            Michael Cline added a comment - I am pointing to: http://jira.atlassian.com/rpc/soap/jirasoapservice-v2 the issue is only with the content-type of the message, the message is properly formatted. The HTTP Header sends the incorrect content-type. Perhaps only .NET webservices check for this content-type. I put a piece in the middle that does a string replace on content-type: text/plain with text/xml and the functionality works fine. Maybe it is a setting of the webserver rather than the Jira application. Certainly doesn't work for .NET and other versions work fine ( http://jira.codehaus.org/rpc/soap/jirasoapservice-v2 )

            Hello Michael,

            I have tested this on http://jira.atlassian.com/rpc/soap/jirasoapservice-v2 (Content-Type: text/html) and http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl (Context-Type: text/xml) using different clients without problem.

            May I know which URL you're pointing to? The first one or the latter one? It seems like only .NET clients are facing this problem.

            Cheers,
            Yuen-Chi Lian

            Yuen-Chi Lian [Atlassian] added a comment - Hello Michael, I have tested this on http://jira.atlassian.com/rpc/soap/jirasoapservice-v2 (Content-Type: text/html) and http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl (Context-Type: text/xml) using different clients without problem. May I know which URL you're pointing to? The first one or the latter one? It seems like only .NET clients are facing this problem. Cheers, Yuen-Chi Lian

              Unassigned Unassigned
              3b6409b56fe1 Michael Cline
              Affected customers:
              2 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: