[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2964) SOAPMessageImpl.saveChanges() changed the referenced mimeHeaders

Jim Ma (JIRA) jira-events at lists.jboss.org
Sun Mar 21 22:33:00 EDT 2010


     [ https://jira.jboss.org/jira/browse/JBWS-2964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Ma updated JBWS-2964:
-------------------------

    Description: 
When the mimeHeaders value is from another soap message's mimeHeaders , the mimeHeader modification will probably change the referenced mimeHeaders. 


  was:
There is code in TCK to create a tmp soapmessage used to dump the outbound soap message:
1 baos = new ByteArrayOutputStream();
2 msg.writeTo(baos); 
3 MessageFactory mf = MessageFactory.newInstance();
4 SOAPMessage tmpMsg = mf.createMessage(msg.getMimeHeaders(),
5               new ByteArrayInputStream(baos.toString().getBytes()));
6 tmpMsg.removeAllAttachments();
7 tmpMsg.saveChanges();

Line7 will change the msg's mimeHeaders value . This is not expected. 

This issue is the cause of two tck failures : com.sun.ts.tests.jaxws.api.javax_xml_ws_handler.LogicalMessageContext.Client.java#ContextPropertiesTest_from_standalone()
com.sun.ts.tests.jaxws.api.javax_xml_ws_handler_soap.SOAPMessageContext.Client.java#ContextPropertiesTest_from_standalone()



       Security: Public  (was: JBoss Internal)


> SOAPMessageImpl.saveChanges() changed the referenced mimeHeaders
> ----------------------------------------------------------------
>
>                 Key: JBWS-2964
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2964
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native
>    Affects Versions: jbossws-native-3.3.0.Beta4
>            Reporter: Jim Ma
>            Assignee: Jim Ma
>             Fix For: jbossws-native-3.3.0.CR1
>
>
> When the mimeHeaders value is from another soap message's mimeHeaders , the mimeHeader modification will probably change the referenced mimeHeaders. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list