Ticket #50 (closed defect: fixed)

Opened 20 months ago

Last modified 20 months ago

file system storage does not send offline messages

Reported by: smoku Owned by: smoku
Priority: major Component: storage
Version: 2.1 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

I'm using jabberd2 as a "lightweight" jabber server for our group and thus I use the PAM module an fs storage to not require any additional software/servers. I found that this works pretty good, but the message queues for offline messages only grew and were never send. Then I found the messages in the log: "jabberd/sm[6236]: fs: unable to parse stored XML; type=queue, owner=<user>@<host>" This problem occured with a CVS-Version packaged by SuSE (2.0cvs20050111) but as I can see the affected file (storage_fs.c) has not changed, since. storage_fs.c reads the stored data line by line, but fails to parse XML that typically uses more than one line.


Created an attachment (id=134) [edit] Fix offline-message support in storage_fs

This patch will try to add more lines, if the initial XML data is not parsed. It will loop until either the data gets parsed, the file ends or the buffer is full.

Attachments

storage_fs.c.diff (3.1 KB) - added by smoku 20 months ago.
Patch by Michael Moeller <m.moeller@…>

Change History

Changed 20 months ago by smoku

Patch by Michael Moeller <m.moeller@…>

Changed 20 months ago by smoku

  • status changed from new to closed
  • resolution set to fixed

(In [155]) Integrated FS storage offline messages fix by Michael Moeller. Closes #50

Note: See TracTickets for help on using tickets.