Hi,

thank you all for reporting and analyzing this. Alan's conclusion is 
right. The disconnect function is missing a check on the connection_id. 
(btw: -1 / 0xffffffff is used to indicated "no connection id")

I don't known why the connection_id isn't picked up on connect. Can you 
please check the obexftp debug output and look for a line "Found 
connection number: 0".

regards,
Christian

surfzoid surfzoid schrieb:
>> 16:07:07.909970 i:rsp  < ca=c8 pf=1 nr=5 ns=3 LM slsap=05 dlsap=2c TTP
>> credits=1
>>        OBEX SUCCESS (36)
>>        c8 b6 2e 05 01 a0 00 1f 10 00 03 f7 4a 00 13 f9
>>        ec 7b c4 95 3c 11 d2 98 4e 52 54 00 dc 9e 09 cb
>>        00 00 00 00
>>     
> Success, from service=Folder-Browsing.  It includes a Connection ID
> header, indicating: "Please use Connection ID zero (0) in every request
> packet from now on."
>
>   
>> 16:07:08.729866 i:cmd  > ca=c8 pf=1 nr=4 ns=5 LM slsap=2c dlsap=05 TTP
>> credits=1
>>        OBEX GET final=1 len=47 Type="x-obex/folder-listing"
>> Name="/IMAGES" (52)
>>        c9 9a 05 2e 01 83 00 2f 42 00 19 78 2d 6f 62 65
>>        78 2f 66 6f 6c 64 65 72 2d 6c 69 73 74 69 6e 67
>>        00 01 00 13 00 2f 00 49 00 4d 00 41 00 47 00 45
>>        00 53 00 00
>>     
> There's *no* Connection ID in the packet.  That's a bug.  As above, it
> must include ConnId=0 as its first header.
> [...]
>> 16:07:08.793853 i:cmd  > ca=c8 pf=1 nr=6 ns=6 LM slsap=2c dlsap=05 TTP
>> credits=1
>>        OBEX DISC (13)
>>        c9 dc 05 2e 01 81 00 08 cb ff ff ff ff
>>     
> DISCONNECT, ConnId=0xFFFFFFFF.  Ehhh?  Where did that value come from?
> Again it must be value zero (0).  (BTW per the spec: "0xFFFFFFFF is
> reserved and is considered invalid.")


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to