Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

'from' contains full jid in error stanza #186

Open
drizt opened this issue Jul 19, 2018 · 0 comments
Open

'from' contains full jid in error stanza #186

drizt opened this issue Jul 19, 2018 · 0 comments

Comments

@drizt
Copy link

drizt commented Jul 19, 2018

I started jabberd on my personal PC. Version: jabberd-2.6.1-8.fc28.x86_64.

So when I send iq with no to attribute server reply has full jid from attribute but must be bare jid.

No to

<!-- Out 2018-07-19 10:27:17 -->
<iq type="get" id="no_to">
  <wrongelement xmlns="wrongns"/>
</iq>

<!-- In 2018-07-19 10:27:17 -->
<iq from="user1@lix/Psi" type="error" to="user1@lix/Psi" id="no_to">
  <error type="cancel" code="501">
    <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
  <wrongelement xmlns="wrongns"/>
</iq>

Bare jid to

<!-- Out 2018-07-19 10:27:36 -->
<iq type="get" id="bare" to="user1@lix">
  <wrongelement xmlns="wrongns"/>
</iq>

<!-- In 2018-07-19 10:27:36 -->
<iq from="user1@lix" type="error" to="user1@lix/Psi" id="bare">
  <error type="cancel" code="501">
    <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
  <wrongelement xmlns="wrongns"/>
</iq>

Full jid to

<!-- Out 2018-07-19 10:27:48 -->
<iq type="get" id="full" to="user1@lix/Psi">
  <wrongelement xmlns="wrongns"/>
</iq>

<!-- In 2018-07-19 10:27:48 -->
<iq from="user1@lix/Psi" type="get" to="user1@lix/Psi" id="full">
  <wrongelement xmlns="wrongns"/>
</iq>

<!-- Out 2018-07-19 10:27:48 -->
<iq type="error" to="user1@lix/Psi" id="full">
  <wrongelement xmlns="wrongns"/>
  <error type="cancel">
    <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
</iq>

<!-- In 2018-07-19 10:27:48 -->
<iq from="user1@lix/Psi" type="error" id="full" to="user1@lix/Psi">
  <wrongelement xmlns="wrongns"/>
  <error type="cancel">
    <feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
  </error>
</iq>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant