Ticket #50 (closed defect: fixed)
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.
