jsip
  1. jsip
  2. JSIP-294

Stack won't respond with an error when receiving an INVITE request with a negative Content-Length.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: PC

    • Issuezilla Id:
      294

      Description

      When stack receives an INVITE request with a negative Content-Length -999, it
      does not respond with an error, but throws out a parse exception and forwards
      the message upstream.
      The exception is showed below:
      Content-Length: -999
      :For input string: ""
      java.text.ParseException: Content-Length: -999
      :For input string: ""
      at gov.nist.javax.sip.parser.Parser.createParseException(Parser.java:45)
      at gov.nist.javax.sip.parser.ContentLengthParser.parse
      (ContentLengthParser.java:66)
      at gov.nist.javax.sip.parser.StringMsgParser.processHeader
      (StringMsgParser.java:411)
      at gov.nist.javax.sip.parser.StringMsgParser.parseSIPMessage
      (StringMsgParser.java:184)
      at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket
      (UDPMessageChannel.java:335)
      at gov.nist.javax.sip.stack.UDPMessageChannel.run
      (UDPMessageChannel.java:295)
      at java.lang.Thread.run(Unknown Source)

      RFC4475 Section 3.1.2.3. Negative Content-Length
      This request has a negative value for Content-Length.
      An element receiving this message should respond with an error. This request
      appeared over UDP, so the remainder of the datagram can simply be discarded.

        Activity

        Hide
        mranga added a comment -

        Started.

        Show
        mranga added a comment - Started.

          People

          • Assignee:
            jsip-issues
            Reporter:
            sophie0308
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: