powered by Jive Software

BUG: Monitoring Plugin – retrieved list of collections is not sorted

From XEP-0136 7.1:

The server MUST list the collections (empty elements including all attributes) in chronological order when responding to any request.

In sources (JdbcPersistenceManager.java):

**findConversations **function returns conversations.values(), where conversations is the HashMap. This class makes no guarantees as to the order of the map.

Had this problem and had to provide a work around by sorting in JavaScript.

I suggest you submit a patch if you have gone that deep into the code

OK, this is my patch
JdbcPersistenceManager.java.patch.zip (655 Bytes)

Thanks. I have notified the developer

Thanks all, I’ll take a look and get this included.