powered by Jive Software

MUC: muc#roomconfig_enablelogging indicates if MUC conversation is loaded?


I had the problem, that MUC conversation was gone after a server restart.

I remembered there was a bug OF-771 which suggests, that MUC conversation is persisted every 300 seconds (by default). But in my case there was no history at all.

I had a look at the source code and saw, that history is indeed written:

mucService.logConversation(this, message, senderAddress);

which is persisted by a timer task, but it won’t get loaded, unless the room is configured with “muc#roomconfig_enablelogging”:

if (room.isLogEnabled()) {
                pstmt = con.prepareStatement(LOAD_HISTORY);

However, there’s also a LOAD_ALL_HISTORY statement, which seems to be used in another case, so I am a little bit confused.

I understand that muc#roomconfig_enablelogging should only mean that conversation is logged **publicly **(http://xmpp.org/extensions/xep-0045.html#enter-logging) (“Whether to Enable Public Logging of Room Conversations”)

Can somebody shed some light here?

Is it a bug or some misconfiguration maybe?

On the server there is an option to never turn off the server or option that has by default 360 or 300 seconds and closes, you can give your never close.

For the other case, the hostorial, you can turn on the server, in conferences