4.1.1/4.1.2 - disco#items request fails for bare user jids and MUC jids

Hi,

I’ve been using Openfire 4.0.2 for a while and I used discovery service to retrieve users full jids with resources by their bare jids.

It’s possible to get full jids from presense, but discovery showed results for any user, even those who is not in the roster.

It also showed all users in group chats with their resources. Now it’s broken after Openfire update to 4.1.1 and 4.1.2, maybe even earlier.

When i’m requesting disco#items info by user bare jid or by MUC jids there is always exception - XMPPError: item-not-found - cancel.

This happens even if users is in the roster. As soon as i provide resource for user request i receive response.

But than its pointless for me, because i want to use discovery to get resources, like in the XEP-0030 (Examples 14 and 15):

https://xmpp.org/extensions/xep-0030.html

Group chats discovery is broken, because MUC jid do not have resource.

Am i missing something or it’s a bug in Openfire?

Here’s traces captured on Openfire 4.0.2 when it worked:

Single chat:

Group chat: