Re: [Jwchat-devel] A couple problems with jwchat.
Status: Beta
Brought to you by:
zeank
From: Sean D. <se...@du...> - 2008-07-16 18:10:55
|
Stefan Strigler wrote: > Sean, > > Am Mittwoch, den 16.07.2008, 09:56 -0400 schrieb Sean Dilda: > >> The first problem is that when I open a chat window and type into it, >> the recipient never receives the IM. This seems to work in some cases, >> but not others. The place I can consistently get it to fail is using >> Firefox 3 as my browser on Linux (CentOS 5 specifically). Does anyone >> know how to resolve this issue? > > Sorry, don't know what could be the problem here. Did you try turning on > debugging or checking the actual network traffic? Firebug is a good > extension for Firefox to track down such problems btw. I did a tcpdump between apache and ejabberd. This is what I found: From FF3: <body rid='622713' sid='cb299709563672ae8bc7029ecd56f7f803fb065c' xmlns='http://jabber.org/protocol/httpbind' key='436543e9f153c5c93c30001162640c0dff7e9944' ><message xmlns="jabber:client" type="chat" to="XX...@gm..."><body xmlns="">test</body></message></body> From FF2: <body rid='662313' sid='bbc2d1ec433ef298f546bc9ecd37a471bad0125e' xmlns='http://jabber.org/protocol/httpbind' key='5494dff971ceb080dd8cf28b132ba4089b342fff' ><message xmlns="jabber:client" type="chat" to="XX...@gm..."><body>test</body></message></body> The key difference seems to be that with FF3, the body tag (inside the message tag) is setting 'xmlns=""'. In FF2 it isn't doing that. I mimiced this difference using the XMPP console in pidgin and found that ejabberd quietly passes the message on, but pidgin ignores the incoming message that has the xmlns set in the body tag. > >> The other problem is I keep getting 404 errors in my logs for the file >> 'xmlextras.js'. Is this a bug in that jwchat is asking for the file? >> Or am I missing a file that needs to be installed? > > The file doesn't exist anymore as of latestest versions of jsjac. But > obviously it's still referenced somewhere within jwchat. But actually > that's nothing to worry about. > Thanks. I'll just patch my copy to remove those lines then. I can send you a copy of the patch if you like, although its a pretty basic change. |