Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
poezio
poezio
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 204
    • Issues 204
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poezio
  • poeziopoezio
  • Issues
  • #3536

Closed
Open
Opened Feb 08, 2021 by ge0rg@ge0rgContributor

The /ban command incorrectly uses nickname instead of JID

The /ban command will auto-complete its parameter from the occupant nicknames, not from the occupant JIDs.

Issuing a /ban nickname will send the nickname, not the JID to the server:

<iq id='81791c2da1654967ac2dd2671d07e1dc' type='set' xml:lang='en' from='georg@****' to='room@chat.yax.im'>
  <query xmlns='http://jabber.org/protocol/muc#admin'>
    <item nick='banned_nickname' affiliation='outcast'/>
  </query>
</iq>

This is VERBOTEN according to XEP-0045:

An admin or owner can ban one or more users from a room. The ban MUST be performed based on the occupant's bare JID.

A short-term solution might be to auto-complete the occupant real bare JID instead of the nickname, a long-term solution would be to replace the nickname with the respective JID.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: poezio/poezio#3536