dims        2003/03/21 16:51:35

  Modified:    java/src/org/apache/axis/transport/local LocalSender.java
  Log:
  Bug 17161 - LocalSender removes attachments from request message
  from [EMAIL PROTECTED]
  
  Revision  Changes    Path
  1.45      +9 -2      
xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java
  
  Index: LocalSender.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/transport/local/LocalSender.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- LocalSender.java  19 Feb 2003 21:30:02 -0000      1.44
  +++ LocalSender.java  22 Mar 2003 00:51:35 -0000      1.45
  @@ -59,6 +59,7 @@
   import org.apache.axis.Constants;
   import org.apache.axis.Message;
   import org.apache.axis.MessageContext;
  +import org.apache.axis.attachments.Attachments;
   import org.apache.axis.components.logger.LogFactory;
   import org.apache.axis.handlers.BasicHandler;
   import org.apache.axis.message.SOAPEnvelope;
  @@ -125,8 +126,14 @@
           }
           
           Message serverRequest = new Message(msgStr);
  -        serverRequest.getAttachmentsImpl().setAttachmentParts(
  -          clientRequest.getAttachmentsImpl().getAttachments());
  +
  +        Attachments serverAttachments = serverRequest.getAttachmentsImpl();
  +        Attachments clientAttachments = clientRequest.getAttachmentsImpl();
  +
  +        if (null != clientAttachments && null != serverAttachments) {
  +            
serverAttachments.setAttachmentParts(clientAttachments.getAttachments());
  +        }
  +
           serverContext.setRequestMessage(serverRequest);
   
   // END FIX: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17161
  
  
  

Reply via email to