umair1112 / sipservlets

Automatically exported from code.google.com/p/sipservlets
0 stars 0 forks source link

ClassCastException in SipServletMessageImpl.setContent() #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call setContent() on a SipServletMessageImpl with a byte array and a 
contentType beginning "multipart/".

What is the expected output? What do you see instead?
The SipServletMessage interface's setContent() method javadoc states that 
"Containers are required to handle byte[] content with any MIME type."

The implementation throws a ClassCastException because it tries to cast the 
byte[] to a Multipart. The interface documentation suggests that it will accept 
a byte array for any content type. 

What version of the product are you using? On what operating system?
MSS 1.7.0 on CentOS 5.8

Please provide any additional information below.

Original issue reported on code.google.com by simon.sm...@telsis.com on 9 Oct 2012 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by jean.deruelle on 19 Oct 2012 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by jean.deruelle on 19 Oct 2012 at 11:18

GoogleCodeExporter commented 9 years ago

Original comment by jean.deruelle on 5 Jul 2013 at 7:44

GoogleCodeExporter commented 9 years ago
Could you provide an example of the content you're trying to set and the call 
you do to setContent ?

Original comment by jean.deruelle on 25 Apr 2014 at 7:04

GoogleCodeExporter commented 9 years ago
This issue was updated by revision 0a8b87726549.

Fix + non regression test

Original comment by jean.der...@telestax.com on 25 Apr 2014 at 7:14

GoogleCodeExporter commented 9 years ago

Original comment by jean.deruelle on 25 Apr 2014 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by jean.der...@telestax.com on 25 Aug 2014 at 10:52