Skip to content

Uncaught exception in IS05 test_25 #876

@rainey

Description

@rainey

on master, currently commit f47247a
Traceback:

Traceback (most recent call last):
  File "/mnt/raid88/srainey/nmos-testing/nmos-testing/nmos-testing/nmostesting/GenericTest.py", line 170, in execute_test
    self.result.append(method(test))
                       ~~~~~~^^^^^^
  File "/mnt/raid88/srainey/nmos-testing/nmos-testing/nmos-testing/nmostesting/suites/IS0501Test.py", line 615, in test_25
    valid2, response2 = self.is05_utils.check_sdp_matches_params(sender)
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/mnt/raid88/srainey/nmos-testing/nmos-testing/nmos-testing/nmostesting/IS05Utils.py", line 556, in check_sdp_matches_params
    if connection_line.group(1) != transport_params["destination_ip"]:
       ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'

This is probably the offending SDP file - the last thing captured by wireshark before the exception

v=0
o=- 1750778293 1750778293 IN IP4 10.10.0.10
s=
c=IN IP4 10.10.0.11
t=0 0
a=recvonly
m=video 44243 RTP/AVP 112
b=AS:0
a=fmtp:112 packetmode=0; width=0; height=0; exactframerate=0/0; interlace=1
a=source-filter: incl IN IP4 10.10.0.11 10.10.0.10
a=mediaclk:direct=0
a=ts-refclk:localmac=00-0F-5B-06-B0-00

It is relatively trivial to fix this, but it's questionable if the test might need more work. According to RFC8866, S5.7:

A session description MUST contain either at least one "c=" field in
each media description or a single "c=" field at the session level...

Nothing in the NMOS spec that I see specifically prohibits the latter option, which is where this is crashing. I may submit a PR regarding this soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions