Sending messages: 'from' attribute must be set to the user's full JID or be empty
I have just installed and tried Kaidan 0.8.0 (KDE under Gentoo Linux).
I set up my account with Google (gmail.com
), and I am trying to communicate with myfriend
who has another Google account.
From what I understand, Kaidan is able to communicate with the server and retrieve my remote contact list.
But when I try to send a message to myfriend
, I see in the console output this reply:
[client] [outgoing] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<message id="deadbeef-cafe-feed-0123-456789ABCDEF" to="myfriend@gmail.com" from="myself@gmail.com" type="chat">
<body>Testing a new client (3)</body>
<n1:delay xmlns:n1="urn:xmpp:delay" stamp="2021-09-01T23:55:18.831Z"/>
<n2:request xmlns:n2="urn:xmpp:receipts"/>
<n3:origin-id xmlns:n3="urn:xmpp:sid:0" id="deadbeef-cafe-feed-0123-456789ABCDEF"/>
</message>
[client] [incoming] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<message id="deadbeef-cafe-feed-0123-456789ABCDEF" to="myself@gmail.com" from="myfriend@gmail.com" type="error">
<body>Testing a new client (3)</body>
<n1:delay xmlns:n1="urn:xmpp:delay" stamp="2021-09-01T23:55:18.831Z"/>
<n2:request xmlns:n2="urn:xmpp:receipts"/>
<n3:origin-id xmlns:n3="urn:xmpp:sid:0" id="deadbeef-cafe-feed-0123-456789ABCDEF"/>
<error code="400" type="modify">
<n4:bad-request xmlns:n4="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<n5:text xmlns:n5="urn:ietf:params:xml:ns:xmpp-stanzas">If set, the 'from' attribute must be set to the user's full JID.</n5:text>
</error>
</message>
I don't know anything of Jabber protocol (nor whatever Google is using in its place), but given that I see in the same log:
[client] [outgoing] >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<iq id="qxmpp4" type="set">
<n1:bind xmlns:n1="urn:ietf:params:xml:ns:xmpp-bind">
<n1:resource>Kaidan.ghFv</n1:resource>
</n1:bind>
</iq>
[client] [incoming] <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<iq id="qxmpp4" type="result">
<n1:bind xmlns:n1="urn:ietf:params:xml:ns:xmpp-bind">
<n1:jid>myself@gmail.com/Kaidan.ghF62D8FA17</n1:jid>
</n1:bind>
</iq>
I am tempted to believe that the server was expecting from="myself@gmail.com/Kaidan.ghF62D8FA17"
instead of from="myfriend@gmail.com"
.
Any comment or suggestion? is it an issue with Kaidan, with QXmpp, with some non-standard protocol the server requires, with me?
If this is a real issue, is there any chance to solve it?