powered by Jive Software

MUCHistory older than 24 days are not supported (Integer overflow)

When setting xmpp.muc.history.reload.limit to more then 24 it wont work and you’ll get messages for an unknown time.

The cause for this seems to be located in

https://github.com/igniterealtime/Openfire/blob/master/src/java/org/jivesoftware /openfire/muc/spi/MUCPersistenceManager.java


Line 232 and Line 549.

In there two integer values are multiplied. With a day value over 24 there’ll be a overflow and digits get “cut” …so the set days wont work anymore.

Where can I report tickets again?

Hope this helps somebody out…we had a very hard time with this one

Good catch and easy to fix:

from = System.currentTimeMillis() - (BigInteger.valueOf(86400000).multiply(BigInteger.valueOf(reloadLimitDays))).lo ngValue();