85degree / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
MIT License
0 stars 0 forks source link

mod_archive eating up messages through spectrum2 transports. #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Prosody
2. Install mod_archive
3. Install a Spectrum2 transport (in gateway mode).
4. Try to chat with anyone through that transport

What is the expected output?
Messages should get through.

What do you see instead?
All incoming and outgoing messages to users via a transport vanish.

What version of the product are you using? On what operating system?
Last version of mod_archive (bb938db35434)
with prosody 0.8.2
on Ubuntu 12.10
And Spectrum2 beta2

Please provide any additional information below.

From the log:
     xmppclient_listener     error   Traceback[c2s]: /usr/lib/prosody/core/usermanager.lua:79: attempt to index field 'users' (a nil value): stack traceback:
            /usr/lib/prosody/net/xmppclient_listener.lua:62: in function </usr/lib/prosody/net/xmppclient_listener.lua:62>
            /usr/lib/prosody/core/usermanager.lua:79: in function 'user_exists'
            /usr/lib/prosody/modules/mod_archive.lua:775: in function '?'
            /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
            /usr/lib/prosody/core/stanza_router.lua:169: in function 'core_post_stanza'
            /usr/lib/prosody/core/stanza_router.lua:121: in function </usr/lib/prosody/core/stanza_router.lua:44>
            (tail call): ?
            [C]: in function 'xpcall'
            /usr/lib/prosody/net/xmppclient_listener.lua:66: in function 'cb_handlestanza'
            /usr/lib/prosody/util/xmppstream.lua:139: in function </usr/lib/prosody/util/xmppstream.lua:125>
            [C]: in function 'parse'
            /usr/lib/prosody/util/xmppstream.lua:200: in function 'feed'
            /usr/lib/prosody/net/xmppclient_listener.lua:145: in function 'data'
            /usr/lib/prosody/net/xmppclient_listener.lua:161: in function </usr/lib/prosody/net/xmppclient_listener.lua:158>
            (tail call): ?
            /usr/lib/prosody/net/server_select.lua:820: in function </usr/lib/prosody/net/server_select.lua:802>
            [C]: in function 'xpcall'
            /usr/bin/prosody:427: in function 'loop'
            /usr/bin/prosody:494: in main chunk
            [C]: ?

Original issue reported on code.google.com by eike.j.g...@gmail.com on 4 Mar 2013 at 10:23

GoogleCodeExporter commented 9 years ago
For me, this patch fixes the issue.

Original comment by cedric.krier@b2ck.com on 14 Aug 2013 at 10:32

Attachments:

GoogleCodeExporter commented 9 years ago
This patch seems to work... nearly. The only problem is: it switches the 
participants of the conversation in the archive. Messages from me appear as 
messages from my buddy and messages from my buddy are shown as messages from me.

Original comment by eike.j.g...@gmail.com on 15 Aug 2013 at 4:26

GoogleCodeExporter commented 9 years ago
Yes, it seems there was an other bugs.
Here is a patch that should fix both.

Original comment by cedric.krier@b2ck.com on 22 Aug 2013 at 6:43

Attachments:

GoogleCodeExporter commented 9 years ago
Yay. Seems to work. Thank you very much. This turns prosody from good software 
to great software.

Original comment by eike.j.g...@gmail.com on 23 Aug 2013 at 7:20