My favorites | Sign in
Project Logo
          
New issue | Search
for
| Advanced search | Search tips
Issue 21: Use AnyEvent::XMPP instead of Net::Jabber
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  todd.e.rinaldo
Type-Defect
Priority-High


Sign in to add a comment
 
Reported by grant.emsley, Jul 08, 2009
What steps will reproduce the problem?
1. try to connect to a server that uses both srv records to point to a
different host than the jid indicates, and verifies the digest-uri (eg
ejabberd)
2. watch authentication fail
3. cry

Net::Jabber relies on Net::XMPP and XML::Stream, both of which haven't been
updated since 2004.

Any server that runs ejabberd (or, I think, openfire) verifies the
digest-uri.  It should be the same domain as the end of the jid.

Instead, XML::Stream sends the actual hostname of the server we are
connecting to, which breaks systems that use srv records.

Taking a quick look at it, AnyEvent::XMPP appears to handle this properly.
 Since it is more recent, and the other appear unsupported, I'd recommend
switching to that instead.
Comment 1 by todd.e.rinaldo, Aug 18, 2009
I don't disagree that this might be better. I have my own issues with Net::XMPP. 
This would however be a major endeavour. git forks are welcome on github if you'd 
like to suggest a patch
Comment 2 by todd.e.rinaldo, Aug 18, 2009
(No comment was entered for this change.)
Owner: todd.e.rinaldo
Comment 3 by todd.e.rinaldo, Aug 18, 2009
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-High
Comment 4 by todd.e.rinaldo, Aug 18, 2009
Net::LibIDN is required. This requires an external GNU module, not available via a 
CPAN install. I'm weary to depend on this. 
Comment 5 by todd.e.rinaldo, Aug 18, 2009
per RT ticket, it looks like LibIDN may soon be removed as a dependency.

http://rt.cpan.org/Public/Bug/Display.html?id=43055
Sign in to add a comment

Hosted by Google Code