Issue Details (XML | Word | Printable)

Key: JSIP-385
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: vralev
Reporter: vralev
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
jsip

Alert-Info header items separate by comma overwrite one-another

Created: 26/Jun/11 08:37 PM   Updated: 26/Jun/11 08:37 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Tags:
Participants: vralev


 Description  « Hide

Before Parsing> Alert-Info: URI-A, URI-B
After parsing> we store as Alert-Info: URI-B, URI-B.

Basically it is overwritten by the second one. But this is not malformed SIP packet.
If you run the JUnit test, then you will notice the problem.

==JUnit output
start test.unit.gov.nist.javax.sip.parser.AlertInfoParserTest
Alert-Info: <http://wwww.example.com/alice/photo.jpg> ;purpose=icon,<http://www.example.com/alice/> ;purpose=info
Encoded header = Alert-Info: <http://www.example.com/alice/>;purpose=info,<http://www.example.com/alice/>;purpose=info
==

Bug in gov.nist.sip.parser.AlertInfoParser.java:parse()
Line which overwrites: alertInfo.setAlertInfo(uri);



There are no comments yet on this issue.