Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Sip-Servlets MSS-2.0.0.FINAL Roadmap-Fix

New issue 169 by [email protected]: ClassCastException in SipServletMessageImpl.setContent()
http://code.google.com/p/sipservlets/issues/detail?id=169

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.


Reply via email to