jsip
  1. jsip
  2. JSIP-385

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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);

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            vralev
            Reporter:
            vralev
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: