[jitsi-users] invalid publish request at quit


#1

when i quit jitsi, it sends publish without SIP-If-Match header, which
is wrong according to rfc 3903.

the last two publish requests and replies to them are shown below.
also the first publish shown below should have contained SIP-If-Match because
there were other publish request before it, but presence server didn't
complain, because there was a body.

so it appears that generating publish requests is broken in more than
one way.

-- juha

···

---------------------------------------------------------------------------

No. Time Source Destination Protocol Info
     44 22:01:05.458 127.0.0.1 127.0.0.1 SIP/XML Request: PUBLISH sip:test@test.fi

Frame 44 (1202 bytes on wire, 1202 bytes captured)
Linux cooked capture
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
Transmission Control Protocol, Src Port: 49289 (49289), Dst Port: qcp (5082), Seq: 10503, Ack: 8922, Len: 1134
Session Initiation Protocol
    Request-Line: PUBLISH sip:test@test.fi SIP/2.0
    Message Header
        Call-ID: b188ce6e424be4ef08427f46a01342e3@0.0.0.0
        CSeq: 4 PUBLISH
        From: "Test" <sip:test@test.fi>;tag=59bf845c
        To: "Test" <sip:test@test.fi>
        Max-Forwards: 69
        Content-Type: application/pidf+xml
        Contact: "Test" <sip:test@192.98.102.10:55700;transport=tcp;registering_acc=test_fi>
        User-Agent: Jitsi1.0-beta1-nightly.build.3651Linux
        Expires: 600
        Event: presence
        Via: SIP/2.0/TCP 192.98.102.10;branch=z9hG4bKb1a4.35a56cd69ee329d66fef30aac48049b5.0;i=b1
        Via: SIP/2.0/TCP 192.98.102.10:55700;branch=z9hG4bK-313339-fb0d1297aa9a6c42dd5756afd68eb252
        Content-Length: 525
    Message Body

No. Time Source Destination Protocol Info
     45 22:01:05.469 127.0.0.1 127.0.0.1 SIP Status: 200 OK

Frame 45 (608 bytes on wire, 608 bytes captured)
Linux cooked capture
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
Transmission Control Protocol, Src Port: qcp (5082), Dst Port: 49289 (49289), Seq: 8922, Ack: 11637, Len: 540
Session Initiation Protocol
    Status-Line: SIP/2.0 200 OK
    Message Header
        Call-ID: b188ce6e424be4ef08427f46a01342e3@0.0.0.0
        CSeq: 4 PUBLISH
        From: "Test" <sip:test@test.fi>;tag=59bf845c
        To: "Test" <sip:test@test.fi>;tag=2c15998813993a5f2698a8693042e46f-9b67
        Via: SIP/2.0/TCP 192.98.102.10;branch=z9hG4bKb1a4.35a56cd69ee329d66fef30aac48049b5.0;i=b1;received=127.0.0.1
        Via: SIP/2.0/TCP 192.98.102.10:55700;branch=z9hG4bK-313339-fb0d1297aa9a6c42dd5756afd68eb252
        Expires: 600
        SIP-ETag: a.1317837711.22870.32.0
        Server: OpenXg Presence/XCAP Server (3.2.0-pre4 (i386/linux))
        Content-Length: 0

No. Time Source Destination Protocol Info
     47 22:07:22.450 127.0.0.1 127.0.0.1 SIP Request: PUBLISH sip:test@test.fi

Frame 47 (673 bytes on wire, 673 bytes captured)
Linux cooked capture
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
Transmission Control Protocol, Src Port: 49289 (49289), Dst Port: qcp (5082), Seq: 11637, Ack: 9462, Len: 605
Session Initiation Protocol
    Request-Line: PUBLISH sip:test@test.fi SIP/2.0
    Message Header
        Call-ID: 9aa14a8e34917e0bdd7e707b22b97f82@0.0.0.0
        CSeq: 5 PUBLISH
        From: "Test" <sip:test@test.fi>;tag=d080db33
        To: "Test" <sip:test@test.fi>
        Max-Forwards: 69
        Content-Type: application/pidf+xml
        Contact: "Test" <sip:test@192.98.102.10:55700;transport=tcp;registering_acc=test_fi>
        User-Agent: Jitsi1.0-beta1-nightly.build.3651Linux
        Expires: 0
        Event: presence
        Via: SIP/2.0/TCP 192.98.102.10;branch=z9hG4bK5b23.72885b7da8c934de114853b63fbca304.0;i=b1
        Via: SIP/2.0/TCP 192.98.102.10:55700;branch=z9hG4bK-313339-2998fd6e59d7567a7455a1787884de4e
        Content-Length: 0

No. Time Source Destination Protocol Info
     48 22:07:22.451 127.0.0.1 127.0.0.1 SIP Status: 400 Invalid request

Frame 48 (572 bytes on wire, 572 bytes captured)
Linux cooked capture
Internet Protocol, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
Transmission Control Protocol, Src Port: qcp (5082), Dst Port: 49289 (49289), Seq: 9462, Ack: 12242, Len: 504
Session Initiation Protocol
    Status-Line: SIP/2.0 400 Invalid request
    Message Header
        Call-ID: 9aa14a8e34917e0bdd7e707b22b97f82@0.0.0.0
        CSeq: 5 PUBLISH
        From: "Test" <sip:test@test.fi>;tag=d080db33
        To: "Test" <sip:test@test.fi>;tag=2c15998813993a5f2698a8693042e46f-c796
        Via: SIP/2.0/TCP 192.98.102.10;branch=z9hG4bK5b23.72885b7da8c934de114853b63fbca304.0;i=b1;received=127.0.0.1
        Via: SIP/2.0/TCP 192.98.102.10:55700;branch=z9hG4bK-313339-2998fd6e59d7567a7455a1787884de4e
        Server: OpenXg Presence/XCAP Server (3.2.0-pre4 (i386/linux))
        Content-Length: 0