Project

General

Profile

Bug #341

CapsManager implementation has minor issue for the protocol

Added by Haojie Song almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Start date:
01/31/2011
Due date:
% Done:

100%

Estimated time:
Affected version:
hg
Locale:
Close

Description

As per the protocol, the service discovery request should include 'node' attribute (the 'node' value from presence 'c' element plus "#" and 'ver' string). It means should invoke the discoverInfo(String entityID,String node) method of ServiceDiscoveryManager and pass the concatenated 'node' value.

Should modify the validate() method like the below:
private boolean validate(String jid, String ver, String hashMethod, String node) {
try {
DiscoverInfo info = mSdm.discoverInfo(jid, node+"#"+ver);
....
}
}

Also available in: Atom PDF