ejabberd development
  1. ejabberd development
  2. EJAB-806

Room participants can send non acurate extended presence information to other participants

    Details

    • Type: Bug Bug
    • Status: Not Yet Scheduled Not Yet Scheduled
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Multi-User Chat (MUC)
    • Labels:
      None

      Description

      user1@localhost/Tka joins room@conference.localhost with nick user1nick.
      Then he sends a presence stanza with extended presence information, even if XEP-45 says [1]

      A client SHOULD NOT presume to generate such information

      The stanza could be:

      <presence to='room@conference.localhost/user1nick' 
        x:xmlns='http://jabber.org/protocol/muc#user'>
        <show>dnd</show>
        <status>testing</status>
        <x>
          <item jid='user2@localhost/Psi'/>
        </x>
      </presence>
      

      XEP-45 says:

      If a MUC service receives such extended presence information from an occupant, it MUST NOT reflect it to other occupants.

      However, when ejabberd parses this client stanza, it does not recognize the namespace properly and includes it in the stanza forwarded to other occupants:

      <presence x:xmlns='http://jabber.org/protocol/muc#user'
      	from='room@conference.localhost/user1nick'
      	to='otheruser@localhost/Home'>
        <show>dnd</show>
        <status>testing</status>
        <x>
          <item jid='user2@localhost/Psi'/>
        </x>
        <x xmlns='http://jabber.org/protocol/muc#user'>
          <item role='moderator'
      	affiliation='owner'
      	jid='user1@localhost/Tka'/>
        </x>
      </presence>
      

      Participants receive a stanza with two valid x elements. Each particular implementation uses the first or the second element. For instance, it seems Tkabber and Gajim use the first element, and Psi uses the last.

      Problem explained by Teo and Ermine in the ejabberd chatroom.

      [1] http://xmpp.org/extensions/xep-0045.html#bizrules-presence

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Badlop
            Reporter:
            Badlop
            Participants:
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              5 years, 22 weeks, 4 days ago

              Issue deployment