0 Replies Latest reply on Feb 24, 2017 5:50 AM by Vit

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

    Vit

      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:

      <iq to='android02@192.168.17.114' id='Cb87E-826' type='get'>

        <query xmlns='http://jabber.org/protocol/disco#items'/>

      </iq>

       

      <iq to='android01@192.168.17.114/a-4b7c5af7-0796-3f8e-a91d-c21997663033' from='android02@192.168.17.114' id='Cb87E-826' type='result'>

        <query xmlns='http://jabber.org/protocol/disco#items'>

        <item jid='android02@192.168.17.114/a-31358406-200b-34c1-a9a6-3cf1fb049003'/>

        </query>

      </iq>

       

      Group chat:

      <iq to='ab8daded-9465-4442-abfa-918819cd7323@conference.192.168.17.114' id='Cb87E-1412' type='get'>

        <query xmlns='http://jabber.org/protocol/disco#items'/>

      </iq>

       

      <iq to='android01@192.168.17.114/a-4b7c5af7-0796-3f8e-a91d-c21997663033' from='ab8daded-9465-4442-abfa-918819cd7323@conference.192.168.17.114' id='Cb87E-1412' type='result'>

        <query xmlns='http://jabber.org/protocol/disco#items'>

        <item jid='ab8daded-9465-4442-abfa-918819cd7323@conference.192.168.17.114/android02@1 92.168.17.114/a-31358406-200b-34c1-a9a6-3cf1fb049003'/>

        <item jid='ab8daded-9465-4442-abfa-918819cd7323@conference.192.168.17.114/android01@1 92.168.17.114/a-4b7c5af7-0796-3f8e-a91d-c21997663033'/>

        </query>

      </iq>