node-red/node-red-nodes

xmpp messages without type attribute can't be handled

Closed this issue · 0 comments

Which node are you reporting an issue on?

node-red-node-xmpp

What are the steps to reproduce?

Create a xmpp in node and connect it o a xmpp server.
Send a xmpp message to the connected client without setting the message 'type' attribute. The message body should contain the chat message.

🔗 Reference: According to rfc3921 the type attribute of xmpp message is only RECOMMENDED and not mandatory.

What happens?

The xmpp in node does not emit the received message send to the xmpp user.

What do you expect to happen?

Node should be able to process xmpp messages without type attribute set. According to the xmpp protocoll this is a valid messsage.

💡 Hint: in 92-xmpp.js received xmpp message are parsed based on the type attribute.

Please tell us about your environment:

  • Node-RED version: 3.1.10
  • node.js version: 3.1.10
  • npm version: 3.1.10
  • Platform/OS: Linux Debian 5.10.216-1 x86_64 Linux
  • Browser: Chrome