Skip to content

Hats destroy command does not return form that is compliant with XEP-0317 #4575

@divyaranjan1905

Description

@divyaranjan1905

Environment

  • ejabberd version: 26.02
  • OS: Linux (Debian)
  • Installed from: docker container

Errors from error.log/crash.log

No errors

Bug description

When requesting to destroy a hat, followiing XEP-0317, ejabberd returns text-single as the type of the field of the Hat instead of list-single as the XEP suggests. Here is the output from Ejabberd's log:

<iq xml:lang='en'
    to='test@dialetheia.xyz/movimhJHyFFAFOGRsjeWs'
    from='testing@conference.dialetheia.xyz'
    type='result' id='M0SMN9zCweh1'>
  <command status='executing'
	   sessionid='2026-05-19T02:52:15.873605Z'
	   node='urn:xmpp:hats:commands:destroy'
	   xmlns='http://jabber.org/protocol/commands'>
    <actions execute='complete'><complete/></actions>
    <x type='form'
       xmlns='jabber:x:data'>
      <title>Destroy a Hat</title>
      <field var='hat'
	     type='text-single'
	     label='Hat URI'>
	<required/>
      </field>
    </x>
  </command>
</iq>

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions