You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/05/12 21:37:56 UTC

[jira] Created: (AXIS-1359) Duplicate HTTP headers

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1359

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1359
    Summary: Duplicate HTTP headers
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Sanjesh Pathak

    Created: Wed, 12 May 2004 12:37 PM
    Updated: Wed, 12 May 2004 12:37 PM

Description:
Axis is sending duplicate HTTP headers under some circumstances. I am using Axis server as a proxy service. This was working fine before. After digging through the lates CVS I believe I found the code that is causing this behavior.

This code was added to org.apache.axis.transport.http.HTTPSender.java on Mar 11 2004 for revision 1.106

      // Transfer MIME headers of SOAPMessage to HTTP headers.
      MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
      if (mimeHeaders != null) {
          for (Iterator i = mimeHeaders.getAllHeaders(); i.hasNext(); ) {
              MimeHeader mimeHeader = (MimeHeader) i.next();
              header.append(mimeHeader.getName())
              .append(": ")
              .append(mimeHeader.getValue())
              .append("\r\n");
          }
      }

Before adding the header, this code doesn't check to see if the header is already appended to the HTTP header (see previous code block where headers are appended) resulting in adding duplicate HTTP headers.

Sanjesh Pathak


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira