[Pidgin] #9970: Error validating caps on certain XMPP disco responge

Pidgin trac at pidgin.im
Thu Aug 20 22:20:15 EDT 2009


#9970: Error validating caps on certain XMPP disco responge
---------------------+------------------------------------------------------
 Reporter:  Redfern  |        Owner:  darkrain42
     Type:  defect   |       Status:  pending   
Milestone:           |    Component:  XMPP      
  Version:  2.6.1    |   Resolution:            
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by darkrain42):

  * status:  new => pending


Comment:

 Oops, I made a mistake in the hashes I was calculating by hand above
 (which probably explains the difficulty I've had in other places).

 There needs to be a trailing '<' at the end of the hash according to
 XEP-0115, so it ends with `<vcard-temp<`. Doing that, I get:

 {{{
 paul at haley:~$ echo -n
 'application/bot//Juick<http://jabber.org/protocol/bytestreams<http://jabber.org/protocol/caps<http://jabber.org/protocol/disco#info<http://jabber.org/protocol/disco#items<http://jabber.org/protocol/geoloc+notify<http://jabber.org/protocol/ibb<http://jabber.org/protocol/mood+notify<http://jabber.org/protocol/si<http://jabber.org/protocol/si/profile
 /file-transfer<http://jabber.org/protocol/tune+notify<vcard-temp<' |
 openssl dgst -binary -sha1 | openssl enc -nopad -base64
 TX20BGrGwU8lyhjvmJo0EhjXE2o=
 }}}

 which is also what Pidgin generates.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/9970#comment:5>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list