Status: New
Owner: ----
Labels: Component-JAIN-SIP-Javascript Type-Defect Priority-Medium
JAIN-SIP-Javascript-1.0.0.Final
New issue 119 by [email protected]: Function computeContentLength
(javascript) can give wrong results
http://code.google.com/p/jain-sip/issues/detail?id=119
1. In SIPMessage class the result is wrong when special characters (like
‘é’,’à’) are given (encoding problem).
In case of String, the function counts the number of characters instead of
the number of Byte which are used.
Consequence, when a SIPMessage is created, content-length computed is too
low.
In Java, this problem seems to be already solved with a getBytes.
2. Conditional clause: if ( content instanceof String ), is not used. In
most case, content is a “string” and not an object “String”.
(To solve it : if ( content.constructor.name == "String") may be used.)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.